diff options
author | Ralph Bean <rbean@redhat.com> | 2017-02-16 00:22:23 +0000 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2017-02-16 00:29:08 +0000 |
commit | 9737313f5df1d35e6e8f3244b6117563c6efb2a5 (patch) | |
tree | d071ff8199b6313799871de3503f18665ca70d47 | |
parent | 0659dd5e68870c57b6fdbfcd069327df71cc2b0a (diff) | |
download | ansible-9737313f5df1d35e6e8f3244b6117563c6efb2a5.tar.gz ansible-9737313f5df1d35e6e8f3244b6117563c6efb2a5.tar.xz ansible-9737313f5df1d35e6e8f3244b6117563c6efb2a5.zip |
copy pdc client config file
-rw-r--r-- | roles/mbs/common/files/fedora.json.production | 7 | ||||
-rw-r--r-- | roles/mbs/common/files/fedora.json.staging | 7 | ||||
-rw-r--r-- | roles/mbs/common/tasks/main.yml | 11 |
3 files changed, 25 insertions, 0 deletions
diff --git a/roles/mbs/common/files/fedora.json.production b/roles/mbs/common/files/fedora.json.production new file mode 100644 index 000000000..50bca379c --- /dev/null +++ b/roles/mbs/common/files/fedora.json.production @@ -0,0 +1,7 @@ +{ + "fedora": { + "host": "https://pdc.fedoraproject.org/rest_api/v1/", + "develop": true, + "insecure": false + } +} diff --git a/roles/mbs/common/files/fedora.json.staging b/roles/mbs/common/files/fedora.json.staging new file mode 100644 index 000000000..e76dc0595 --- /dev/null +++ b/roles/mbs/common/files/fedora.json.staging @@ -0,0 +1,7 @@ +{ + "fedora": { + "host": "https://pdc.stg.fedoraproject.org/rest_api/v1/", + "develop": true, + "insecure": false + } +} diff --git a/roles/mbs/common/tasks/main.yml b/roles/mbs/common/tasks/main.yml index 7e46835ff..97a21e721 100644 --- a/roles/mbs/common/tasks/main.yml +++ b/roles/mbs/common/tasks/main.yml @@ -56,3 +56,14 @@ tags: - mbs - mbs/common + +- name: copy pdc client config file + copy: > + src=fedora.json.{{env}} dest=/etc/pdc.d/fedora.json + owner=root group=root mode=0644 + notify: + - restart apache + - restart fedmsg-hub + tags: + - mbs + - mbs/common |