wiki/articles/system/ansible.md

43 lines
1.3 KiB
Markdown
Raw Normal View History

2019-07-04 16:55:59 +00:00
man(8) Ansible on Thunix man(8)
2019-07-04 16:55:59 +00:00
NAME Ansible on Thunix - how we manage the server
2019-07-04 16:55:59 +00:00
SYNOPSIS ansible-pull
2019-07-04 16:55:59 +00:00
DESCRIPTION We use ansible to manage the servers running the systems and
services for Thunix. Ansible consists of a "playbook" of YAML files,
that declare the state of the system.
2019-07-04 16:55:59 +00:00
The first step is to clone the repo used to manage the environment:
2019-07-04 16:55:59 +00:00
git clone git@ttm.sh:thunix/ansible.git (You will need a tidegit account for this, and a key loaded into your account there)
2019-07-04 16:55:59 +00:00
From there, the typical github-type workflow is used:
2019-07-04 16:55:59 +00:00
* Create a local branch, to track your issue's changes.
2019-07-04 16:55:59 +00:00
* Commit changes to your local branch.
2019-07-04 16:55:59 +00:00
* Send a URI pointing to your repo, with branch name to someone with merge permissions
2019-07-04 16:55:59 +00:00
Inside of the tildegit interface:
2019-07-04 16:55:59 +00:00
* Create a new branch, selecting option to create a branch and pull request
2019-07-04 16:55:59 +00:00
* Make changes in your branch
2019-07-04 16:55:59 +00:00
* Update PR
2019-07-04 16:55:59 +00:00
* Wait for someone to merge your changes
2019-07-04 16:55:59 +00:00
Hourly, a job runs that pulls the latest version of the repo, and the runs ansible-playbook against the playbook. A sudoer can manually run this job, if desired,
and it's located at /etc/cron.hourly/ansible-pull.
2019-07-04 16:55:59 +00:00
SEE ALSO tildegit.org(8), git(8), ansible-playbook(8)
2019-07-04 16:55:59 +00:00
BUGS No known bugs.
2019-07-04 16:55:59 +00:00
AUTHOR Uber Geek (ubergeek@thunix.net)
2019-07-04 16:55:59 +00:00
1.1 19 February 2019 man(8)