Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Our Ansible configuration is stored on Bitbucket (see below for the URL).

Once you check out the above git repository from BitBucket, you'll find a more detailed description of the organization of our Ansible code at

at https://bitbucket.org/ChemicalHeritageFoundation/ansible-inventory/src/master/README.md.git .

Overview of the codebase

...

ls -1 ansible-inventory/group_vars | while read N ; do echo $N: ; \
ansible-vault --vault-password-file FILE_CONTAINING_PASSWORD \
view ansible-inventory/group_vars/$N | grep -i STRING_TO_LOOK_FOR ; done

...

More details

...

  •  for more details about this project.
  • Best practices for editing Ansible: Editing Ansible

Building a new machine on AWS with Ansible

...

  1. Generate a new ssh key on AWS (EC2 > Keypairs)
    1. place it in ~/.ssh
    2. chmod 0600.
    1. useful command if you're having problems with the key: $ openssl rsa -in chf_prod.pem -check

Git repositories for ansible - structure and use (this section is out of date; )

This section is out of date; we no longer use the git submodule as described here.

The code we use to administer Sufia via Ansible lives at https://github.com/curationexperts/ansible-hydra

...