Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ar/refactor1 #43

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Ar/refactor1 #43

wants to merge 14 commits into from

Conversation

Ar2000jp
Copy link
Contributor

This is an attempt at a simpler, clearer layout for the main playbooks.
I did a bit of testing on the finished parts, and they seem to be working.

A new script (genFullPlaybook.sh) generates a playbook that has all the roles and default variables in the roles folder. This can be used to easily customize and run playbooks.

It's used like this:
sudo mkdir /opt/provisioning/
sudo cp -r provisioning/ /opt/tunapanda/provisioning/
cd /opt/tunapanda/provisioning/playbooks/
sudo ansible-playbook -c local -i "localhost," oneOfThePlaybooks.yml

Still needs some work in several areas, like:

  • bootstrap.sh script, and probably the vagrant script.
  • Make it runnable from an arbitrary location (without folder copying).
  • Can't remember...

Trailing whitespace OCD treatment.
Added a script that generates a playbook that has all roles, and
    all default variables.
The timestamps part is added to genFullPlaybook.sh script, and the Cubietruck
    specific stuff are split-off into a separate role.
Not needed in new scheme.
This was originally done to handle defaults files with bad spacing,
    but it ended up breaking multi-line variables.
This fixes fullPlaybook.yml generation.
I think these variables should be renamed, and perhaps moved somewhere else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant