fedora-web: adjust to staging not having sysadmin-releng group.
Since we are not using fas in staging, but are switching to noggin, we currently don't have the sysadmin-releng group. For now, just switch to apache. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
b2cdf5dc62
commit
c7cf438e8c
3 changed files with 49 additions and 0 deletions
|
@ -52,6 +52,13 @@
|
|||
file: state=directory path=/srv/web/fmw owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env != 'staging'
|
||||
|
||||
- name: make fmw dir
|
||||
file: state=directory path=/srv/web/fmw owner=apache group=apache mode=2775 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env == 'staging'
|
||||
|
||||
- name: Copy syncStatic script (stg)
|
||||
when: env == "staging"
|
||||
|
|
|
@ -17,6 +17,20 @@
|
|||
tags:
|
||||
- fedora-web
|
||||
- ostree
|
||||
when: env != 'staging'
|
||||
|
||||
- name: make ostree dir
|
||||
file: state=directory
|
||||
path=/srv/web/ostree
|
||||
owner=apache
|
||||
group=apache
|
||||
mode=2775
|
||||
setype=httpd_sys_content_t
|
||||
seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
- ostree
|
||||
when: env == 'staging'
|
||||
|
||||
- name: Copy over the static files
|
||||
copy: src={{item}} dest=/srv/web/ostree/{{item}} mode=0644
|
||||
|
@ -38,6 +52,20 @@
|
|||
tags:
|
||||
- fedora-web
|
||||
- ostree
|
||||
when: env != 'staging'
|
||||
|
||||
- name: make IoT ostree dir
|
||||
file: state=directory
|
||||
path=/srv/web/ostree/iot
|
||||
owner=apache
|
||||
group=apache
|
||||
mode=2775
|
||||
setype=httpd_sys_content_t
|
||||
seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
- ostree
|
||||
when: env == 'staging'
|
||||
|
||||
- name: Copy over the static IoT files
|
||||
copy: src=iot_{{item}} dest=/srv/web/ostree/iot/{{item}} mode=0644
|
||||
|
|
|
@ -2,11 +2,25 @@
|
|||
file: state=directory path=/srv/web/registry-signatures owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env != 'staging'
|
||||
|
||||
- name: make registry-signatures dir
|
||||
file: state=directory path=/srv/web/registry-signatures owner=apache group=apache mode=2775 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env == 'staging'
|
||||
|
||||
- name: make registry-index dir
|
||||
file: state=directory path=/srv/web/registry-index owner=apache group=sysadmin-releng mode=755 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env != 'staging'
|
||||
|
||||
- name: make registry-index dir
|
||||
file: state=directory path=/srv/web/registry-index owner=apache group=apache mode=755 setype=httpd_sys_content_t seuser=system_u
|
||||
tags:
|
||||
- fedora-web
|
||||
when: env == 'staging'
|
||||
|
||||
- name: Copy over the Fedora Server CA cert
|
||||
copy: src="{{ private }}/files/fedora-ca.cert" dest=/etc/pki/httpd/fedora-server-ca.cert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue