parent
0352af510d
commit
a256a03c79
26 changed files with 147 additions and 32 deletions
@ -0,0 +1,37 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
- name: Configure CentOS SIG Cloud GPG Key |
||||||
|
copy: |
||||||
|
content: | |
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK----- |
||||||
|
Version: GnuPG v2.0.22 (GNU/Linux) |
||||||
|
|
||||||
|
mQENBFVWcCcBCACfm3eQ0526/I0/p7HpR0NjK7K307XHhnbcbZv1sDUjQABDaqh0 |
||||||
|
N4gnZcovf+3fj6pcdOmeOpGI0cKE7Fh68RbEIqyjB7l7+j1grjewR0oCFFZ38KGm |
||||||
|
j+DWQrj1IJW7JU5fH/G0Cu66ix+dJPcuTB3PJTqXN3ce+4TuG09D+epgwfbHlqaT |
||||||
|
pH2qHCu2uiGj/AaRSM/ZZzcInMaeleHSB+NChvaQ0W/m+kK5d/20d7sfkaTfI/pY |
||||||
|
SrodCfVTYxfKAd0TLW03kimHs5/Rdz+iZWecVKv6aFxzaywbrOjmOsy2q0kEWIwX |
||||||
|
MTZrq6cBRRuWyiXsI2zT2YHQ4UK44IxINiaJABEBAAG0WkNlbnRPUyBDbG91ZCBT |
||||||
|
SUcgKGh0dHA6Ly93aWtpLmNlbnRvcy5vcmcvU3BlY2lhbEludGVyZXN0R3JvdXAv |
||||||
|
Q2xvdWQpIDxzZWN1cml0eUBjZW50b3Mub3JnPokBOQQTAQIAIwUCVVZwJwIbAwcL |
||||||
|
CQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJEPm5/ud2RCnmATUH/3HDtWxpFkmy |
||||||
|
FiA3VGkMt5dp3bgCRSd84X6Orfx1LARowpI4LomCGglGBGXVJePBacwcclorbLaz |
||||||
|
uWrW/wU0efz0aDB5c4NPg/yXfNvujvlda8ADJwZXVBQphzvaIKwl4PqBsEnxC10I |
||||||
|
93T/0iyphAhfMRJ5R8AbEHMj7uF+TWTX/JoyQagllMqWTwoP4DFRutPdOmmjwvSV |
||||||
|
kWItH7hq6z9+M4dhlqeoOvPbL5oCxX7TVmLck02Q5gI4syULOa7sqntzUQKFkhWp |
||||||
|
9U0+5KrBQBKezrurrrkq/WZR3WNE1KQfNQ77f7S2JcXJdOaKgJ7xe7Y2flPq98Aq |
||||||
|
wKXK7l1c3dc= |
||||||
|
=W6yF |
||||||
|
-----END PGP PUBLIC KEY BLOCK----- |
||||||
|
dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud |
||||||
|
tags: repo |
||||||
|
|
||||||
|
- name: Configure Openstack repo for mod_xsendfile |
||||||
|
yum_repository: |
||||||
|
name: xsendfile |
||||||
|
description: Cloud SIG repo for mod_xsendfile |
||||||
|
baseurl: http://mirror.centos.org/$contentdir/$releasever/cloud/$basearch/openstack-train/ |
||||||
|
gpgcheck: True |
||||||
|
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud |
||||||
|
includepkgs: mod_xsendfile |
||||||
|
tags: repo |
@ -0,0 +1,10 @@ |
|||||||
|
module seadrive 1.0; |
||||||
|
|
||||||
|
require { |
||||||
|
type init_t; |
||||||
|
type fusermount_exec_t; |
||||||
|
class file execute; |
||||||
|
} |
||||||
|
|
||||||
|
#============= init_t ============== |
||||||
|
allow init_t fusermount_exec_t:file execute; |
@ -0,0 +1,19 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
- name: Copy SELinux policy |
||||||
|
copy: src=seadrive.te dest=/etc/selinux/targeted/local/ |
||||||
|
register: seadrive_selinux_policy |
||||||
|
tags: seadrive |
||||||
|
|
||||||
|
- name: Compile SELinux policy |
||||||
|
shell: | |
||||||
|
cd /etc/selinux/targeted/local/ |
||||||
|
checkmodule -M -m -o seadrive.mod seadrive.te |
||||||
|
semodule_package -o seadrive.pp -m seadrive.mod |
||||||
|
when: seadrive_selinux_policy.changed |
||||||
|
tags: seadrive |
||||||
|
|
||||||
|
- name: Load SELinux policy |
||||||
|
command: semodule -i /etc/selinux/targeted/local/seadrive.pp |
||||||
|
when: seadrive_selinux_policy.changed |
||||||
|
tags: seadrive |
@ -0,0 +1,3 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
rm -rf {{ unifi_root_dir }}/backup/mongo/* |
@ -0,0 +1,4 @@ |
|||||||
|
#!/bin/bash -e |
||||||
|
|
||||||
|
mkdir -p {{ unifi_root_dir }}/backup/mongo |
||||||
|
mongodump --quiet --port 27117 --out {{ unifi_root_dir }}/backup/mongo |
@ -0,0 +1,5 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
unifi_packages: |
||||||
|
- java-1.8.0-openjdk-headless |
||||||
|
- mongodb-server |
@ -0,0 +1,6 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
unifi_packages: |
||||||
|
- java-1.8.0-openjdk-headless |
||||||
|
- mongodb-org-server |
||||||
|
- mongodb-org |
@ -1,4 +1,3 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
umount /home/lbkp/wordpress_{{ wp_id }} |
|
||||||
rm -f {{ wp_root_dir }}/backup/* |
rm -f {{ wp_root_dir }}/backup/* |
||||||
|
Loading…
Reference in new issue