[Baypiggies] Code / Slides for tonight
Glen Jarvis
glen at glenjarvis.com
Thu Jun 26 23:41:45 CEST 2014
You may want to clone this before tonight. Even through I trimmed a ton of
goodness, and although I was flying through the modules at the end, it
still took me 1 hour 30 minutes for my dry run. I don't know where to trim
the other 30 minutes and still be that meaningful... So, little things like
cloning now may help.
https://github.com/glenjarvis/ansible_tutorial
(slides not included in the repo yet; but will be)
I'll be working out of release-1.0.0 (although I've gotten *awesome*
corrections that are getting merged into develop, I want a 'frozen
deliverable' tonight to eliminate any differences - because Live Demos are
famous for sucking and I don't want to tempt fate :)
Getting Started (Installing and following-along)
1. Clone this repo.
prompt> git clone https://github.com/glenjarvis/ansible_tutorial.git
Cloning into 'ansible_tutorial'...
remote: Reusing existing pack: 112, done.
remote: Total 112 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (112/112), 37.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (48/48), done.
Checking connectivity... done.
1. Change to the src directory.
prompt> cd ansible_tutorial/src/
1. Configure the repo for your account and settings
prompt> python configure.py
No configuration file found. Let me ask questions so that we can configure.
What is the path to your Amazon pem key?
--> example_key.pem
Configuring `ansible_hosts` file ./ansible_hosts...
What is the IP address of the Amazon Linux free tier machine?
--> demo.example.com
Configuration is complete.
1. Follow the examples (starting with the example_01 subdirectory).
<https://github.com/glenjarvis/ansible_tutorial#examples>Examples
Here is a list of the examples just in case there's any confusion in which
order the examples should be executed:
1. Configure (see instructions above)
2. cd src/example1; python access_machine.py
3. cd src/example2; python auto_update_machine.py
4. cd src/example3; Read the README file (it's not really meant to be
executed)
5. cd src/example4; ansible -m 'ping' webservers
6. cd src/example5; ansible webservers -a 'sudo yum update -y'
7. cd src/playbook_examples; ansible-playbook demo_playbook_iter_01.yml
8. cd src/playbook_examples; ansible-playbook demo_playbook_iter_02.yml
9. cd src/playbook_examples; ansible-playbook demo_playbook_iter_03.yml
10. cd src/playbook_examples; ansible-playbook demo_playbook_iter_04.yml
11. cd src/playbook_examples; ansible-playbook demo_playbook_iter_05.yml
12. cd src/playbook_examples; ansible-playbook demo_playbook_iter_06.yml
13. cd src/playbook_examples; ansible-playbook demo_playbook_iter_07.yml
14. cd src/playbook_examples; ansible-playbook demo_playbook_iter_08.yml
15. cd src/playbook_examples; ansible-playbook demo_playbook_iter_09.yml
16. cd src/playbook_examples; Read (but don't execute):
pedantically_commented_playbook.yml
17. cd src/role_examples; ansible-playbook demo_play_role_01.yml
18. cd src/role_examples; ansible-playbook demo_play_role_02.yml
19. cd src/role_examples; ansible-playbook demo_play_role_03.yml
20. Exploration: Log into machine; sudo su - webuser; cd
/home/webuser/sample_project; python manage.py runserver
<https://github.com/glenjarvis/ansible_tutorial#bio>
--
"You grab mindshare by being there."
-- Alex Martelli
Bay Area Python Interest Group Talk
24-Oct, 2013-- Frank Tibolt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20140626/45bbfeb7/attachment.html>
More information about the Baypiggies
mailing list