diff options
author | Dave Johnson <dave@ansible.com> | 2016-01-22 20:43:35 +0300 |
---|---|---|
committer | Dave Johnson <dave@ansible.com> | 2016-04-25 22:29:01 +0300 |
commit | 4552ba4729b6f2ac4b9aa203991fdd304ed1a7ec (patch) | |
tree | 5c7810f2ed096121266420b15eb156d3a7335dc6 /windows | |
parent | ab343402e34df341bf9ea8c99c4efcc5248e4f23 (diff) |
Removed old Linux bits
Diffstat (limited to 'windows')
10 files changed, 0 insertions, 213 deletions
diff --git a/windows/wamp_haproxy/roles/common/files/RPM-GPG-KEY-EPEL-6 b/windows/wamp_haproxy/roles/common/files/RPM-GPG-KEY-EPEL-6 deleted file mode 100644 index 7a20304..0000000 --- a/windows/wamp_haproxy/roles/common/files/RPM-GPG-KEY-EPEL-6 +++ /dev/null @@ -1,29 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v1.4.5 (GNU/Linux) - -mQINBEvSKUIBEADLGnUj24ZVKW7liFN/JA5CgtzlNnKs7sBg7fVbNWryiE3URbn1 -JXvrdwHtkKyY96/ifZ1Ld3lE2gOF61bGZ2CWwJNee76Sp9Z+isP8RQXbG5jwj/4B -M9HK7phktqFVJ8VbY2jfTjcfxRvGM8YBwXF8hx0CDZURAjvf1xRSQJ7iAo58qcHn -XtxOAvQmAbR9z6Q/h/D+Y/PhoIJp1OV4VNHCbCs9M7HUVBpgC53PDcTUQuwcgeY6 -pQgo9eT1eLNSZVrJ5Bctivl1UcD6P6CIGkkeT2gNhqindRPngUXGXW7Qzoefe+fV -QqJSm7Tq2q9oqVZ46J964waCRItRySpuW5dxZO34WM6wsw2BP2MlACbH4l3luqtp -Xo3Bvfnk+HAFH3HcMuwdaulxv7zYKXCfNoSfgrpEfo2Ex4Im/I3WdtwME/Gbnwdq -3VJzgAxLVFhczDHwNkjmIdPAlNJ9/ixRjip4dgZtW8VcBCrNoL+LhDrIfjvnLdRu -vBHy9P3sCF7FZycaHlMWP6RiLtHnEMGcbZ8QpQHi2dReU1wyr9QgguGU+jqSXYar -1yEcsdRGasppNIZ8+Qawbm/a4doT10TEtPArhSoHlwbvqTDYjtfV92lC/2iwgO6g -YgG9XrO4V8dV39Ffm7oLFfvTbg5mv4Q/E6AWo/gkjmtxkculbyAvjFtYAQARAQAB -tCFFUEVMICg2KSA8ZXBlbEBmZWRvcmFwcm9qZWN0Lm9yZz6JAjYEEwECACAFAkvS -KUICGw8GCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRA7Sd8qBgi4lR/GD/wLGPv9 -qO39eyb9NlrwfKdUEo1tHxKdrhNz+XYrO4yVDTBZRPSuvL2yaoeSIhQOKhNPfEgT -9mdsbsgcfmoHxmGVcn+lbheWsSvcgrXuz0gLt8TGGKGGROAoLXpuUsb1HNtKEOwP -Q4z1uQ2nOz5hLRyDOV0I2LwYV8BjGIjBKUMFEUxFTsL7XOZkrAg/WbTH2PW3hrfS -WtcRA7EYonI3B80d39ffws7SmyKbS5PmZjqOPuTvV2F0tMhKIhncBwoojWZPExft -HpKhzKVh8fdDO/3P1y1Fk3Cin8UbCO9MWMFNR27fVzCANlEPljsHA+3Ez4F7uboF -p0OOEov4Yyi4BEbgqZnthTG4ub9nyiupIZ3ckPHr3nVcDUGcL6lQD/nkmNVIeLYP -x1uHPOSlWfuojAYgzRH6LL7Idg4FHHBA0to7FW8dQXFIOyNiJFAOT2j8P5+tVdq8 -wB0PDSH8yRpn4HdJ9RYquau4OkjluxOWf0uRaS//SUcCZh+1/KBEOmcvBHYRZA5J -l/nakCgxGb2paQOzqqpOcHKvlyLuzO5uybMXaipLExTGJXBlXrbbASfXa/yGYSAG -iVrGz9CE6676dMlm8F+s3XXE13QZrXmjloc6jwOljnfAkjTGXjiB7OULESed96MR -XtfLk0W5Ab9pd7tKDR6QHI7rgHXfCopRnZ2VVQ== -=V/6I ------END PGP PUBLIC KEY BLOCK----- diff --git a/windows/wamp_haproxy/roles/common/files/epel.repo b/windows/wamp_haproxy/roles/common/files/epel.repo deleted file mode 100644 index 0160dfe..0000000 --- a/windows/wamp_haproxy/roles/common/files/epel.repo +++ /dev/null @@ -1,26 +0,0 @@ -[epel] -name=Extra Packages for Enterprise Linux 6 - $basearch -#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch -mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch -failovermethod=priority -enabled=1 -gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 - -[epel-debuginfo] -name=Extra Packages for Enterprise Linux 6 - $basearch - Debug -#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug -mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch -failovermethod=priority -enabled=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 -gpgcheck=1 - -[epel-source] -name=Extra Packages for Enterprise Linux 6 - $basearch - Source -#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS -mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch -failovermethod=priority -enabled=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 -gpgcheck=1 diff --git a/windows/wamp_haproxy/roles/common/handlers/main.yml b/windows/wamp_haproxy/roles/common/handlers/main.yml deleted file mode 100644 index bca0737..0000000 --- a/windows/wamp_haproxy/roles/common/handlers/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Handlers for common notifications - -- name: restart ntp - service: name=ntpd state=restarted - -- name: restart iptables - service: name=iptables state=restarted diff --git a/windows/wamp_haproxy/roles/common/tasks/main.yml b/windows/wamp_haproxy/roles/common/tasks/main.yml deleted file mode 100644 index bf59de7..0000000 --- a/windows/wamp_haproxy/roles/common/tasks/main.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# This role contains common plays that will run on all nodes. - -- name: Install python bindings for SE Linux - yum: name={{ item }} state=present - with_items: - - libselinux-python - - libsemanage-python - -- name: Create the repository for EPEL - copy: src=epel.repo dest=/etc/yum.repos.d/epel.repo - -- name: Create the GPG key for EPEL - copy: src=RPM-GPG-KEY-EPEL-6 dest=/etc/pki/rpm-gpg - -- name: install some useful nagios plugins - yum: name={{ item }} state=present - with_items: - - nagios-nrpe - - nagios-plugins-swap - - nagios-plugins-users - - nagios-plugins-procs - - nagios-plugins-load - - nagios-plugins-disk - -- name: Install ntp - yum: name=ntp state=present - tags: ntp - -- name: Configure ntp file - template: src=ntp.conf.j2 dest=/etc/ntp.conf - tags: ntp - notify: restart ntp - -- name: Start the ntp service - service: name=ntpd state=started enabled=true - tags: ntp - -- name: insert iptables template - template: src=iptables.j2 dest=/etc/sysconfig/iptables - notify: restart iptables - -- name: test to see if selinux is running - command: getenforce - register: sestatus - changed_when: false diff --git a/windows/wamp_haproxy/roles/common/templates/iptables.j2 b/windows/wamp_haproxy/roles/common/templates/iptables.j2 deleted file mode 100644 index c39bcf5..0000000 --- a/windows/wamp_haproxy/roles/common/templates/iptables.j2 +++ /dev/null @@ -1,30 +0,0 @@ -# {{ ansible_managed }} -# Manual customization of this file is not recommended. -*filter -:INPUT ACCEPT [0:0] -:FORWARD ACCEPT [0:0] -:OUTPUT ACCEPT [0:0] - -{% if (inventory_hostname in groups[group_webservers]) or (inventory_hostname in groups[group_monitoring]) %} --A INPUT -p tcp --dport 80 -j ACCEPT -{% endif %} - -{% if (inventory_hostname in groups[group_dbservers]) %} --A INPUT -p tcp --dport 3306 -j ACCEPT -{% endif %} - -{% if (inventory_hostname in groups[group_lbservers]) %} --A INPUT -p tcp --dport {{ listenport }} -j ACCEPT -{% endif %} - -{% for host in groups[group_monitoring] %} --A INPUT -p tcp -s {{ hostvars[host].ansible_default_ipv4.address }} --dport 5666 -j ACCEPT -{% endfor %} - --A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT --A INPUT -p icmp -j ACCEPT --A INPUT -i lo -j ACCEPT --A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT --A INPUT -j REJECT --reject-with icmp-host-prohibited --A FORWARD -j REJECT --reject-with icmp-host-prohibited -COMMIT diff --git a/windows/wamp_haproxy/roles/common/templates/ntp.conf.j2 b/windows/wamp_haproxy/roles/common/templates/ntp.conf.j2 deleted file mode 100644 index 6336c2e..0000000 --- a/windows/wamp_haproxy/roles/common/templates/ntp.conf.j2 +++ /dev/null @@ -1,12 +0,0 @@ - -driftfile /var/lib/ntp/drift - -restrict 127.0.0.1 -restrict -6 ::1 - -server {{ ntpserver }} - -includefile /etc/ntp/crypto/pw - -keys /etc/ntp/keys - diff --git a/windows/wamp_haproxy/roles/haproxy/handlers/main.yml b/windows/wamp_haproxy/roles/haproxy/handlers/main.yml deleted file mode 100644 index 1eade08..0000000 --- a/windows/wamp_haproxy/roles/haproxy/handlers/main.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# Handlers for HAproxy - -- name: restart haproxy - service: name=haproxy state=restarted - -- name: reload haproxy - service: name=haproxy state=reloaded - diff --git a/windows/wamp_haproxy/roles/haproxy/tasks/main.yml b/windows/wamp_haproxy/roles/haproxy/tasks/main.yml deleted file mode 100644 index ef025f6..0000000 --- a/windows/wamp_haproxy/roles/haproxy/tasks/main.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -# This role installs HAProxy and configures it. - -- name: Download and install haproxy and socat - yum: name={{ item }} state=present - with_items: - - haproxy - - socat - -- name: Configure the haproxy cnf file with hosts - template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg - notify: restart haproxy diff --git a/windows/wamp_haproxy/roles/haproxy/templates/haproxy.cfg.j2 b/windows/wamp_haproxy/roles/haproxy/templates/haproxy.cfg.j2 deleted file mode 100644 index c429285..0000000 --- a/windows/wamp_haproxy/roles/haproxy/templates/haproxy.cfg.j2 +++ /dev/null @@ -1,39 +0,0 @@ -global - log 127.0.0.1 local2 - - chroot /var/lib/haproxy - pidfile /var/run/haproxy.pid - maxconn 4000 - user root - group root - daemon - - # turn on stats unix socket - stats socket /var/lib/haproxy/stats level admin - -defaults - mode {{ mode }} - log global - option httplog - option dontlognull - option http-server-close - option forwardfor except 127.0.0.0/8 - option redispatch - retries 3 - timeout http-request 10s - timeout queue 1m - timeout connect 10s - timeout client 1m - timeout server 1m - timeout http-keep-alive 10s - timeout check 10s - maxconn 3000 - -backend app - {% for host in groups['tag_ansible_group_windows_lbservers'] %} - listen {{ daemonname }} 0.0.0.0:{{ listenport }} - {% endfor %} - balance {{ balance }} - {% for host in groups['tag_ansible_group_windows_webservers'] %} - server {{ host }} {{ hostvars[host]['ansible_' + iface].ipv4.address }}:{{ httpd_port }} - {% endfor %} diff --git a/windows/wamp_haproxy/site.yml b/windows/wamp_haproxy/site.yml index f0229d9..6b11c16 100644 --- a/windows/wamp_haproxy/site.yml +++ b/windows/wamp_haproxy/site.yml @@ -36,8 +36,6 @@ gather_facts: False roles: -# - common -# - haproxy - elb tags: |