diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-03-25 15:52:50 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-03-25 15:52:50 +0300 |
commit | 303278daa3480f459d3f076c3f5a8793c94fa8b1 (patch) | |
tree | 24a983bdcae60c3bfdac9acabd15a32c49d8ca65 /roles/ick-artifact-store | |
parent | aed23d8f331f8330a06bf60dbc65d91d408fe329 (diff) | |
download | ick2-ansible-303278daa3480f459d3f076c3f5a8793c94fa8b1.tar.gz |
Change: update hosts for a test instance
Diffstat (limited to 'roles/ick-artifact-store')
-rw-r--r-- | roles/ick-artifact-store/tasks/main.yml | 31 | ||||
-rw-r--r-- | roles/ick-artifact-store/templates/artifact_store.yaml.j2 | 6 |
2 files changed, 37 insertions, 0 deletions
diff --git a/roles/ick-artifact-store/tasks/main.yml b/roles/ick-artifact-store/tasks/main.yml new file mode 100644 index 0000000..6d73b74 --- /dev/null +++ b/roles/ick-artifact-store/tasks/main.yml @@ -0,0 +1,31 @@ +- name: install ick packages + apt: + name: "{{ item }}" + with_items: + - ick2 + +- name: create config dirs + file: + state: directory + path: "{{ item }}" + owner: root + group: root + mode: 0755 + with_items: + - /etc/ick + +- name: install blob service config + template: + src: blob-service.yaml.j2 + dest: /etc/ick/blob-service.yaml + owner: root + group: root + mode: 0644 + +- name: enable and start units + service: + name: "{{ item }}" + state: restarted + enabled: yes + with_items: + - ick-blob-service diff --git a/roles/ick-artifact-store/templates/artifact_store.yaml.j2 b/roles/ick-artifact-store/templates/artifact_store.yaml.j2 new file mode 100644 index 0000000..0708da5 --- /dev/null +++ b/roles/ick-artifact-store/templates/artifact_store.yaml.j2 @@ -0,0 +1,6 @@ +token-issuer: localhost +token-audience: localhost +token-public-key: "{{ token_public_key }}" +log: + - filename: /var/log/ickbs/blob_service.log +blobdir: /var/lib/ick/blobs |