Difference between revisions of "DebOps"
(Add notes) |
|||
Line 7: | Line 7: | ||
I created a [https://docs.debops.org/en/latest/user-guide/project-directories.html project directory] ~/src/qb3 where I also installed DebOps. The monorepo installed in the debops/ subdirectory of a given DebOps project directory will take precedence over the one installed globally in ~/.local/share/debops/debops/ or included in the Python package. <ref>https://docs.debops.org/en/latest/user-guide/install.html</ref> | I created a [https://docs.debops.org/en/latest/user-guide/project-directories.html project directory] ~/src/qb3 where I also installed DebOps. The monorepo installed in the debops/ subdirectory of a given DebOps project directory will take precedence over the one installed globally in ~/.local/share/debops/debops/ or included in the Python package. <ref>https://docs.debops.org/en/latest/user-guide/install.html</ref> | ||
+ | |||
+ | To bootstrap my first host, I ran <tt>debops bootstrap -u root --limit labs</tt>, but it would fail on <tt>'/usr/bin/python: not found'</tt>. By specifying that the remote host should use python3, it succeeded. | ||
+ | |||
+ | <source lang=ini> | ||
+ | [all:vars] | ||
+ | ansible_python_interpreter='/usr/bin/env python3' | ||
+ | |||
+ | |||
+ | [debops_all_hosts] | ||
+ | # greg-desk ansible_connection=local | ||
+ | labs ansible_ssh_host=labs.qualitybox.us | ||
+ | </source> | ||
+ | |||
+ | Next, I ran the common playbook with <tt>debops common -u root --limit labs</tt>, but that failed trying to download some secrets (error message below). Re-running the command succeeded. | ||
+ | |||
+ | |||
+ | |||
+ | <pre> | ||
+ | TASK [debops.pki : Download private realm contents by host] ************************************************************************************************ | ||
+ | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option | ||
+ | failed: [labs] (item={u'default_subdomains': [u'labs', u'*.labs', u'_wildcard_'], u'name': u'domain', u'acme': False}) => {"changed": false, "item": {"acme": false, "default_subdomains": ["labs", "*.labs", "_wildcard_"], "name": "domain"}, "msg": "Could not find or access '/home/greg/src/qb3/ansible/inventory/../secret/pki/realms/by-host/labs.qualitybox.us/domain/private/' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"} | ||
+ | </pre> | ||
+ | |||
== Resources == | == Resources == |
Revision as of 10:32, 28 August 2019
The DebOps project is installed (src on GitHub) on greg-desk as a controller using Ansible from source in ~/bin/ansible
We're developing a DebOps for MediaWiki like the DebOps for WordPress project There are a lot of roles included in the Debops project. My project is to compose a solution similar to Meza, but using MediaWikiFarm as the farm system.
Notes[edit | edit source]
I created inventories in biz/ops/prod for creating a GitLab environment. Meanwhile, the 'monorepo' (the DebOps code itself) is stored in ~/.local/share/debops/debops/ You'll want to run debops-update on a (daily) regular basis.
I created a project directory ~/src/qb3 where I also installed DebOps. The monorepo installed in the debops/ subdirectory of a given DebOps project directory will take precedence over the one installed globally in ~/.local/share/debops/debops/ or included in the Python package. [1]
To bootstrap my first host, I ran debops bootstrap -u root --limit labs, but it would fail on '/usr/bin/python: not found'. By specifying that the remote host should use python3, it succeeded.
[all:vars]
ansible_python_interpreter='/usr/bin/env python3'
[debops_all_hosts]
# greg-desk ansible_connection=local
labs ansible_ssh_host=labs.qualitybox.us
Next, I ran the common playbook with debops common -u root --limit labs, but that failed trying to download some secrets (error message below). Re-running the command succeeded.
TASK [debops.pki : Download private realm contents by host] ************************************************************************************************ An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option failed: [labs] (item={u'default_subdomains': [u'labs', u'*.labs', u'_wildcard_'], u'name': u'domain', u'acme': False}) => {"changed": false, "item": {"acme": false, "default_subdomains": ["labs", "*.labs", "_wildcard_"], "name": "domain"}, "msg": "Could not find or access '/home/greg/src/qb3/ansible/inventory/../secret/pki/realms/by-host/labs.qualitybox.us/domain/private/' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}