Fedora Infrastructure Ansible Repository
Find a file
2015-05-26 11:31:41 +00:00
callback_plugins Kill that whitespace more carefully. 2015-02-02 15:52:34 +00:00
files Exclude 22_Alpha and 22_Beta from download-ib02. It's full. 2015-05-16 02:09:31 +00:00
filter_plugins print correct error message 2015-03-27 13:11:40 +00:00
handlers Rework the iptables/libvirt handler stuff. 2015-04-28 17:18:14 +00:00
inventory Add cpus to proxy11 2015-05-20 14:52:16 +00:00
library [cloud09] trying to include modified nova_compute module and use in again 2015-03-16 16:58:16 +01:00
playbooks Try and setup a redirectmatch for prerelease in staging. 2015-05-26 11:31:41 +00:00
roles Merge branch 'sebool' 2015-05-26 08:28:56 +00:00
scripts Drop lockbox-comm01.qa and virthost-comm01.qa 2015-05-08 19:50:07 +00:00
tasks change the condition so it works even when the variable is not defined 2015-05-14 16:08:56 +02:00
vars Fix atomic image variables. 2015-05-13 22:23:35 +00:00
.gitignore Migrate a bunch of things to roles. Thanks to misc! 2013-08-19 20:12:26 +00:00
CONVENTIONS Clean up some more old syntax 2014-01-08 17:42:18 +00:00
master.yml forgot to add beaker-stg to master.yml and websites 2015-05-08 22:17:36 +00:00
README Reorg README some. 2015-05-13 16:58:54 +00:00
README.cloud Added info about how to install the self signed cloud cert. 2015-05-14 17:23:55 +00:00
TODO restructure virt to be more like cloud creation 2013-05-03 16:56:38 +00:00

== ansible repository/structure ==

files - files and templates for use in playbooks/tasks
      - subdirs for specific tasks/dirs highly recommended

inventory - where the inventory and additional vars is stored
          - All files in this directory in ini format 
          - added together for total inventory
  group_vars: 
          - per group variables set here in a file per group 
  host_vars: 
          - per host variables set here in a file per host 

library - library of custom local ansible modules

playbooks - collections of plays we want to run on systems

  groups: groups of hosts configured from one playbook.
  
  hosts: playbooks for single hosts. 

  manual: playbooks that are only run manually by an admin as needed.

tasks - snippets of tasks that should be included in plays

roles - specific roles to be use in playbooks. 
        Each role has it's own files/templates/vars

filter_plugins - Jinja filters

master.yml - This is the master playbook, consisting of all 
             current group and host playbooks. Note that the 
             daily cron doesn't run this, it runs even over
             playbooks that are not yet included in master. 
             This playbook is usefull for making changes over 
             multiple groups/hosts usually with -t (tag). 

== Paths ==

public path for everything is:

 /srv/web/infra/ansible

private path - which is sysadmin-main accessible only is:

 /srv/private/ansible

In general to run any ansible playbook you will want to run:

sudo -i ansible-playbook /path/to/playbook.yml

== Scheduled check-diff ==

Every night a cron job runs over all playbooks under playbooks/{groups}{hosts}
with the ansible --check --diff options. A report from this is sent to 
sysadmin-logs. In the ideal state this report would be empty. 

== Idempotency ==

All playbooks should be idempotent. Ie, if run once they should bring the 
machine(s) to the desired state, and if run again N times after that they should
make 0 changes (because the machine(s) are in the desired state). 
Please make sure your playbooks are idempotent. 

== Can be run anytime ==

When a playbook or change is checked into ansible you should assume 
that it could be run at ANY TIME. Always make sure the checked in state
is the desired state. Always test changes when they land so they don't 
surprise you later.