- 26 Jun, 2018 4 commits
-
-
Swann Perarnau authored
I discovered that CI runners could be manually activated for multiple projects. It means I don't need to add a config section for each runner, and can instead have a global one.
-
Swann Perarnau authored
Playbook to use with ./chi-appliance configure to setup a CI infrastructure on top of Chameleon nodes. This playbook: - installs gitlab-runner - adds role to install or run ci on aml I'm reluctant to add CI tokens in plaintext inside the infra repo. Instead, ansible-vault is used to keep them encrypted.
-
Swann Perarnau authored
The openstack client libraries bury the actual error message reported by the openstack servers inside a Requests.Response object. This patch makes sure we retrieve this message, as it is more useful than the top level one.
-
Swann Perarnau authored
We don't have a use for a appliance-local ssh key for now, so let's not add that trouble to our setup.
-
- 13 Jun, 2018 2 commits
-
-
Swann Perarnau authored
Just enough tasks and templates to end up with an idle gitlab CI runner installed and running on the node.
-
Swann Perarnau authored
It should make it easier to organize tasks, and give us easy access to "become" for an entire group of tasks.
-
- 12 Jun, 2018 3 commits
-
-
Swann Perarnau authored
[fix] enforce region for blazar client See merge request !3
-
Swann Perarnau authored
Since Chameleon changed to a multi-region setup the blazar client is acting up. It looks like the current upstream doesn't support that feature by default. In theory, the session already contains the region info, but since the client creation code doesn't use it by default, we force it. This is adapted from the Chameleon-recommended client library.
-
Swann Perarnau authored
Ansible improvements See merge request !2
-
- 07 Jun, 2018 7 commits
-
-
Swann Perarnau authored
Until we figure out a way to add host keys to the config without trouble, disable host key checking when calling ansible. Not doing so could result in blocked calls, as ansible was asking questions during the run.
-
Swann Perarnau authored
Usefull for users that want to try a different set of roles.
-
Swann Perarnau authored
Ansible allows us to wait for the node to become available, which should allow us to launch the `configure` command as soon as `create --wait` completes. Uses default wait_for_connection module, which should poll for 10 minutes. Requires that we disable gather_fact, and reactivate it after the connection succeeds.
-
Swann Perarnau authored
Stack create and delete take an option to wait for the operation to complete. It doesn't actually wait for the operation to complete, just for the Openstack side of it to be done. For creation for exemple, the nodes might still be booting.
-
Swann Perarnau authored
Ansible recommend a specific directory layout to deal with complex playbooks. As we expect this configuration to become trickier, let's adopt good practices right away.
-
Swann Perarnau authored
Previous code was blocking on stdout after subprocess completed with success, as `poll()` would return 0, and `not 0` is true.
-
Swann Perarnau authored
Region support See merge request !1
-
- 30 May, 2018 1 commit
-
-
Swann Perarnau authored
Reflecting changes in OpenRC file after Chameleon update on 2018/05/29.
-
- 29 May, 2018 2 commits
-
-
Swann Perarnau authored
Just realized that the blockquotes were not the right format for command lists. Should be using code blocks instead.
-
Swann Perarnau authored
Add a script to help with general configuration issues.
-
- 23 May, 2018 3 commits
-
-
Swann Perarnau authored
More doc to explain what is going on in these scripts.
-
Swann Perarnau authored
ansible/inventory.yaml is generated by `chi-appliance configure`
-
Swann Perarnau authored
Supporting the two regions of chameleon (TACC & UC) requires changes in the clouds.yaml/secure.yaml format, to avoid having a secure file with twice the info. We use the region support in os-client-config for that. I had to change the scripts a little bit, as the cloud name is now fixed but the region_name has to be specified.
-
- 22 May, 2018 1 commit
-
-
Swann Perarnau authored
Forgot to add the pipenv install command to make sure that the dependencies are installed on a new machine. Thanks to @tpatki
-
- 17 May, 2018 1 commit
-
-
Swann Perarnau authored
Will allow appliance management more easily, in a script separated from the lease stuff. Uses ansible under the hood to configure the appliance.
-
- 14 May, 2018 1 commit
-
-
Swann Perarnau authored
This is not ideal. Ansible has tons of issues when we launch it from there, and the configuration become tedious. It might be easier to deploy ansible on the frontend and rerun everything inside, or to create a python script that deals with ansible directly.
-
- 11 May, 2018 2 commits
-
-
Swann Perarnau authored
Add an option to create haswell allocations, but default to skylake nodes. Skylakes are required for power management.
-
Swann Perarnau authored
Using pipenv as the environment manager, implement as clouds.yaml workflow and a script to manage leases on chameleon. Note that the clouds.yaml only support chi-tacc for now. We will need to add another region for UC later.
-
- 08 May, 2018 1 commit
-
-
Swann Perarnau authored
Derived from the complex appliances documentation. I'm still in the process of understanding the whole softwareconfig part, but it's a start.
-