Skip to content

Commit

Permalink
updating ads
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Dec 23, 2023
1 parent 81d843f commit 7d342cc
Show file tree
Hide file tree
Showing 36 changed files with 229 additions and 31 deletions.
8 changes: 8 additions & 0 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ In our Ansible Role Example Role which supports Redhat, Centos, Ubuntu, Debian a

[filename](roles/ansible-role-example-role/molecule/default/molecule.yml ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Practicle example
Molecule use providers such as docker or virtualbox to create the target instances to run the playbook against.

Expand Down Expand Up @@ -153,6 +155,8 @@ Note : Run ``` wsl --install -d Ubuntu ``` in **non administrative** mode in pow

![wsl.png](roles/ansible-role-example-role/wsl.PNG)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

```
PS C:\Users\User> wsl --shutdown
PS C:\Users\User> wsl --unregister Ubuntu
Expand Down Expand Up @@ -254,6 +258,8 @@ and do
Allow all 3 types of network when set up Firewall for VirtualBox
![image-2.png](roles/ansible-role-example-role/image-2.png)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

### Mac

Install all the Tools you need in the [__Get Started Section__](#get-started-dependencies-the-tools-you-will-need)
Expand Down Expand Up @@ -303,3 +309,5 @@ Succesful ouput should be as below:
fatal: [ansible-role-example-role-ubuntu-2204]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"}
```
Did you install the SSHPass application? See [__Get Started Section__](#get-started-dependencies-the-tools-you-will-need)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
6 changes: 5 additions & 1 deletion apache-airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ The `test-ssh.py` just ssh into hashiqube to test the connection
# Airflow Task Instance Result
![Airflow](images/airflow_task_result.png?raw=true "Airflow")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

# Links and further reading

- https://airflow.apache.org/
Expand All @@ -66,4 +68,6 @@ The `test-ssh.py` just ssh into hashiqube to test the connection

[filename](apache-airflow.sh ':include :type=code')

[filename](dags/run-dbt.py ':include :type=code')
[filename](dags/run-dbt.py ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
8 changes: 7 additions & 1 deletion boundary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ In this whiteboard overview, HashiCorp Co-Founder and CTO, Armon Dadgar introduc
[![Introduction to HashiCorp Boundary](images/maxresdefault.jpeg)](https://www.youtube.com/watch?v=tUMe7EsXYBQ)

![Hashicorp Boundary](images/boundary-how-it-works.png?raw=true "Hashicorp Boundary")

![Hashicorp Boundary](images/boundary-login-page.png?raw=true "Hashicorp Boundary")

![Hashicorp Boundary](images/boundary-logged-in-page.png?raw=true "Hashicorp Boundary")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

`vagrant up --provision-with basetools,docsify,boundary`

```log
Expand Down Expand Up @@ -97,4 +101,6 @@ Bringing machine 'hashiqube0.service.consul' up with 'virtualbox' provider...

`boundary.sh`

[filename](boundary.sh ':include :type=code')
[filename](boundary.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
4 changes: 3 additions & 1 deletion code-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ vagrant ssh -c "< ~/.config/code-server/config.yaml head -n "3" | tail -n +"3""

## Future plans

In the future there is potential to add an option for starting different code-server instances. Currently it always launches with the default image. Custom images could be setup that have different things preinstalled (e.g. Image with python, usefull libaries and useful extentions pre installed).
In the future there is potential to add an option for starting different code-server instances. Currently it always launches with the default image. Custom images could be setup that have different things preinstalled (e.g. Image with python, usefull libaries and useful extentions pre installed).

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
6 changes: 6 additions & 0 deletions consul/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ HashiCorp co-founder and CTO Armon Dadgar gives a whiteboard overview of HashiCo
- [Consul 1.13 Introduces Cluster Peering](https://www.hashicorp.com/blog/consul-1-13-introduces-cluster-peering)
- [Consul 1.12 Hardens Security on Kubernetes with Vault](https://www.hashicorp.com/blog/consul-1-12-hardens-security-on-kubernetes-with-vault)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Introduction

[![Introduction to HashiCorp Consul](images/maxresdefault.jpeg)](https://www.youtube.com/watch?v=mxeMdl0KvBI)
Expand Down Expand Up @@ -188,6 +190,8 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
```
![Consul](images/consul.png?raw=true "Consul")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Links

- https://www.consul.io/
Expand All @@ -203,3 +207,5 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
We use Prometheus and Grafana to Monitor Consul

See: [__Monitoring Hashicorp Consul__](prometheus-grafana/README?id=monitoring-hashicorp-consul)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
9 changes: 8 additions & 1 deletion database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ mysql: [Warning] Using a password on the command line interface can be insecure.
| root | localhost |
+------------------+-----------+
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## MySQL Vagrant Provisioner

[filename](mysql.sh ':include :type=code')
Expand Down Expand Up @@ -367,6 +370,8 @@ NT AUTHORITY\SYSTEM
(21 rows affected)
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## MSSQL Vagrant Provisioner

[filename](mssql.sh ':include :type=code')
Expand Down Expand Up @@ -464,4 +469,6 @@ Bringing machine 'hashiqube0.service.consul' up with 'virtualbox' provider...

## PostgreSQL Vagrant Provisioner

[filename](postgresql.sh ':include :type=code')
[filename](postgresql.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
4 changes: 4 additions & 0 deletions dbt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ Plugins:
- bigquery: 1.2.0 - Up to date!
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

# DBT Jaffle-Shop
For a practical example we are going to use https://github.com/dbt-labs/jaffle_shop

Expand Down Expand Up @@ -134,3 +136,5 @@ This would open space as well to implement cool stuff, such as running the model
[filename](common.sh ':include :type=code')

[filename](dbt-global.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
8 changes: 7 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ EXPOSE 80
CMD /root/run_apache.sh
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Running

`vagrant up --provision-with docker`
Expand Down Expand Up @@ -554,6 +556,8 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
user.local.dev: vagrant ssh -c "docker exec -it apache2 /bin/bash -c "apache2 -t -v""
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Links

- https://www.docker.com/
Expand All @@ -568,4 +572,6 @@ See: [__Monitoring Docker__](prometheus-grafana/README?id=monitoring-docker)

## Docker Vagrant Provisioner

[filename](docker.sh ':include :type=code')
[filename](docker.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
6 changes: 5 additions & 1 deletion docsify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
user.local.dev: ++++ Docsify: http://localhost:3333/
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Links

- https://docsify.js.org/
Expand All @@ -83,4 +85,6 @@ After provision, you can access Docsify and HashiQube documentation at http://lo

## Docsify Vagrant Provisioner

[filename](docsify.sh ':include :type=code')
[filename](docsify.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
4 changes: 4 additions & 0 deletions elasticsearch-kibana-cerebro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
user.local.dev: ++++ Cerebro: http://localhost:5602 and enter http://10.9.99.10:9200
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Summary
After provision you will have the latest Elasticsearch, Kibana and Cerebro running as Docker containers in your VM, with their ports exposed on your local machine.

Expand Down Expand Up @@ -251,3 +253,5 @@ __Kibana__ http://localhost:5601
__Cerebro__ http://localhost:5602

![Cerebro](images/cerebro.png?raw=true "Cerebro")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
2 changes: 2 additions & 0 deletions git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ You can use this `Git Cheat Sheet Wallpaper` to help you quickly learn the most
## Links

- https://git-scm.com/

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
10 changes: 9 additions & 1 deletion gitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ Bringing machine 'hashiqube0' up with 'docker' provider...
hashiqube0: ++++
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

The above Gitlab provision will look like this

![Gitlab provision](images/gitlab-provision.png?raw=true "Gitlab provision")
Expand Down Expand Up @@ -521,6 +523,8 @@ Now, to the right you will see a Clone Button, please click on that, and Copy th

![Gitlab Clone with SSH Test Repository](images/gitlab-copy-ssh-clone-url-test-project.png?raw=true "Gitlab Clone with SSH Test Repository")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

I will clone this to my `~/workspace/personal/test` directory, and I will use this command `git clone ssh://git@localhost:32022/root/test.git`

The output is below
Expand Down Expand Up @@ -574,6 +578,8 @@ Here is a screenshot of what I did, and the commands will be below that you can
![Gitlab add pipeline file to Test Repository](images/gitlab-add-pipeline-file-to-test-repository.png?raw=true "Gitlab add pipeline file to Test Repository")
[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
`cd test`

`nano .gitlab-ci.yml`
Expand Down Expand Up @@ -707,4 +713,6 @@ And that's it for now folks, thank you for taking the time to go through this tu
## Gitlab Vagrant Provisioner
[filename](gitlab.sh ':include :type=code')
[filename](gitlab.sh ':include :type=code')
[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
2 changes: 2 additions & 0 deletions hashicorp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ Kelsey Hightower, Senior Developer Advocate at Google
Five years ago the world was introduced to 12 Factor apps which provided the blueprint for building applications for the cloud. As we move beyond the cloud into Hyperscale computing applications must be designed to be globally available and always on. Building on the foundation of 12 Factor, this session will introduce key requirements for Hyperscale applications such as high performance low latency communication, and playing nice in a distributed system. Attendees will learn how to build Hyperscale applications from the ground up using the HashiStack (Nomad, Vault, and Consul).

[![Kelsey Hightower: 12-Factor Apps and the HashiStack](images/maxresdefault.jpeg)](https://www.youtube.com/watch?v=NVl9cIiPF80)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
6 changes: 5 additions & 1 deletion hashiqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ You can also view a short introduction about HashiQube here, be sure to have has

[![HashiQube: A Jedi DevOps Lab Using All the HashiCorp Products](/images/youtube-hashiqube-the-jedi-devops-lab.png)](https://www.youtube.com/watch?v=sFiWzKbpEpU)

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

This Provider (Basetools) installs some essential tools that Hashiqube provisioners need, this is one of the first provisioners that has to be run. Amongst other it also installs Python and Pip and sets the Message of the Day MOTD.

```
Expand Down Expand Up @@ -212,4 +214,6 @@ These resources were destroyed for app "hashiqube":
✓ Deleted security group sg-0fe1d9ac18497255d
✓ Deleted ECS task definition
Destroy successful!
```
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
14 changes: 13 additions & 1 deletion jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ Bringing machine 'hashiqube0' up with 'docker' provider...
hashiqube0: ++++ Login with username: admin and password: 050fb849cef940cba7065f10d4d10a8c
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Login

Use the token in the output "Login with `4ed0dc30230c4310a58a22207414c3aa`" to login to Jenkins.
Expand Down Expand Up @@ -263,6 +265,8 @@ Now click top Right `Enable Automatic Refresh` this will take you back to the Je

Before we continue let's make sure Vault is running and it is unsealed. In a terminal please run

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Vault

:bulb: This step was automatically done for you in the Provisioning step, with this command in our provisioning step `jenkins/jenkins.sh`
Expand Down Expand Up @@ -446,6 +450,8 @@ Now we can add this Token as a `Secret Text` in Jenkins Credential Manager

![Jenkins Credential Secret Text Terraform Cloud Token](images/jenkins_credential-secret-text.png?raw=true "Jenkins Credential Secret Text Terraform Cloud Token")

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Jenkinsfile pipeline

Jenkinsfile pipeline example that runs Terraform and retrieve secrets from Vault
Expand Down Expand Up @@ -648,6 +654,8 @@ EOF
}
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

![Jenkins](images/jenkins_new_item_pipeline_vault-jenkins_configure.png?raw=true "Jenkins")

Click Save.
Expand Down Expand Up @@ -2456,6 +2464,8 @@ WORKSPACE_TMP=/var/jenkins_home/workspace/test@tmp
Finished: SUCCESS
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

You can click on that job and view the console, for more output, you should see your secrets are totally hidden and provided by Vault.
![Jenkins](images/jenkins_job_vault-jenkins_build_console.png?raw=true "Jenkins")

Expand All @@ -2465,4 +2475,6 @@ You can click on that job and view the console, for more output, you should see

## The Code

[filename](jenkins.sh ':include :type=code')
[filename](jenkins.sh ':include :type=code')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
2 changes: 2 additions & 0 deletions ldap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Bringing machine 'user.local.dev' up with 'virtualbox' provider...
user.local.dev: ++++ vault login -method=ldap username=hermes (password: hermes)
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Enable LDAP Auth in Vault

`vault auth enable ldap`
Expand Down
6 changes: 5 additions & 1 deletion localstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ Now check the assets with aws local inside vagrant
2006-02-04 03:45:09 localstack-s3-bucket
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')

## Links

- https://localstack.cloud/
Expand All @@ -143,4 +145,6 @@ Now check the assets with aws local inside vagrant

[filename](main.tf ':include :type=code hcl')

[filename](outputs.tf ':include :type=code hcl')
[filename](outputs.tf ':include :type=code hcl')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
4 changes: 3 additions & 1 deletion markdown-quiz-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ It is a tool to generate quizzes from Markdown files. This means that you can st

### Sample Quiz

[filename](generated-quizzes/sample-quiz.html ':include height=800px')
[filename](generated-quizzes/sample-quiz.html ':include height=800px')

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
2 changes: 2 additions & 0 deletions mermaid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,5 @@ More -.-> | A4 | a4[QA Test]
a2[Packer] ==> | Azure | a6[SOE Image Repository]
style a2 fill:#ccf,stroke:#f66,stroke-width:2px,stroke-dasharray: 5, 5
```

[google ads](../googleads.html ':include :type=iframe width=100% height=300px')
Loading

0 comments on commit 7d342cc

Please sign in to comment.