This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
def myImage | |
stage('Clone repository') { | |
/* Let's make sure we have the repository cloned to our workspace */ | |
dir('.') { | |
git url: 'https://github.com/VireshDoshi/jen-build-node-app-aws.git' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8.9.4 | |
RUN mkdir /root/packer | |
WORKDIR /root/packer | |
RUN wget https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip | |
RUN wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip | |
RUN apt-get update \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost loop_with_file]$ ansible-playbook -i "localhost," -c local ./with_files-playbook.yml | |
PLAY [localhost] ********************************************************************************************************************************** | |
TASK [Gathering Facts] **************************************************************************************************************************** | |
ok: [localhost] | |
TASK [create a file number 1 for this example] **************************************************************************************************** | |
ok: [localhost] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost jinja2-map]$ ansible-playbook -i "localhost," ./j2-map-playbook.yml | |
PLAY [localhost] ********************************************************************************************************************************** | |
TASK [establish the first name from the mps dictionary] ******************************************************************************************* | |
ok: [localhost] => { | |
"msg": [ | |
"Tony", | |
"Theresa", | |
"Nigel" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost selectattr]$ ansible-playbook -i "localhost," ./selectattr-playbook.yml | |
PLAY [localhost] ********************************************************************************************************************************** | |
TASK [extract the emails for users without a password] ******************************************************************************************** | |
ok: [localhost] | |
TASK [debug message] ****************************************************************************************************************************** | |
ok: [localhost] => ([email protected]) => { | |
"changed": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost list_dicts]$ ansible-playbook -i "localhost," ./list_dicts-playbook.yml | |
PLAY [Test playbook for checking dictionaries] **************************************************************************************************** | |
TASK [Gathering Facts] **************************************************************************************************************************** | |
ok: [localhost] | |
TASK [Accessing direct dictionary] **************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": "hostname is test and ip is 127.0.0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost modify_list]$ ansible-playbook -i "localhost," ./modify_list-playbook.yml | |
PLAY [localhost] ********************************************************************************************************************************** | |
TASK [modify the list values by appending to the end with _changed] ******************************************************************************* | |
ok: [localhost] => { | |
"msg": "before value: [u'listitem_1', u'listitem_2'] after value: [u'listitem_1_changed', u'listitem_2_changed']" | |
} | |
TASK [modify the list values by appending to the end with .changed] ******************************************************************************* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vdo023@localhost ASOS_BDD_WebTester]$ cat ./test_selenium_grid.py | |
import unittest | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import Select | |
class PythonOrgSearch(unittest.TestCase): | |
def setUp(self): | |
self.driver = webdriver.Remote( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform_project/ | |
--> autoscaling_groups/ | |
--> variables.tf | |
--> website-asg.tf | |
--> launch_configurations/ | |
--> variables.tf |
OlderNewer