소스 검색

Changed apache2 refs to apache

tags/v0.37.4
Alan McNea 11 년 전
부모
커밋
c47ce1b533
5개의 변경된 파일17개의 추가작업 그리고 17개의 파일을 삭제
  1. +2
    -2
      fcgid.sls
  2. +8
    -8
      init.sls
  3. +4
    -4
      php5.sls
  4. +2
    -2
      register_site.sls
  5. +1
    -1
      rewrite.sls

+ 2
- 2
fcgid.sls 파일 보기

@@ -8,7 +8,7 @@ mod-fcgid:
- name: libapache2-mod-fcgid
- order: 180
- require:
- pkg: apache2
- pkg: apache

a2enmod fcgid:
cmd.run:
@@ -17,6 +17,6 @@ a2enmod fcgid:
- require:
- pkg: mod-fcgid
- watch_in:
- cmd: apache2-restart
- cmd: apache-restart

{% endif %}

+ 8
- 8
init.sls 파일 보기

@@ -1,10 +1,10 @@
include:
- apt
- apache2.register_site
- apache.register_site

{% if grains['os']=="Ubuntu" %}

apache2:
apache:
pkg.installed:
- name: apache2
- order: 175
@@ -17,16 +17,16 @@ a2dissite 000-default:
- order: 225
- onlyif: ls /etc/apache2/sites-enabled/000-default
- watch_in:
- cmd: apache2-reload
- cmd: apache-reload
- require:
- pkg: apache2
- pkg: apache

apache2-reload:
apache-reload:
cmd.wait:
- name: service apache2 reload
- order: 420

apache2-restart:
apache-restart:
cmd.wait:
- name: service apache2 restart
- order: 425
@@ -35,12 +35,12 @@ apache2-restart:
file.absent:
- order: 230
- require:
- pkg: apache2
- pkg: apache

/etc/apache2/sites-available/default-ssl:
file.absent:
- order: 230
- require:
- pkg: apache2
- pkg: apache

{% endif %} #END: os = ubuntu

+ 4
- 4
php5.sls 파일 보기

@@ -8,7 +8,7 @@ mod-php5:
- name: libapache2-mod-php5
- order: 180
- require:
- pkg: apache2
- pkg: apache

a2enmod php5:
cmd.run:
@@ -16,7 +16,7 @@ a2enmod php5:
- require:
- pkg: mod-php5
- watch_in:
- cmd: apache2-restart
- cmd: apache-restart

{% if 'apache2-php-ini' in pillar %}
/etc/php5/apache2/php.ini:
@@ -24,9 +24,9 @@ a2enmod php5:
- source: {{ pillar['apache2-php-ini'] }}
- order: 225
- watch_in:
- cmd: apache2-restart
- cmd: apache-restart
- require:
- pkg: apache2
- pkg: apache
- pkg: php5
{% endif %}


+ 2
- 2
register_site.sls 파일 보기

@@ -18,7 +18,7 @@ a2dissite {{ pillar['apache2-register-site'][site]['name'] }}:
{% endif %}
- order: 230
- require:
- pkg: apache2
- pkg: apache
- file: /etc/apache2/sites-available/{{ pillar['apache2-register-site'][site]['name'] }}

{% endif %}
@@ -37,7 +37,7 @@ a2dissite {{ pillar['apache2-register-site'][site]['name'] }}:
- mode: 775
- watch_in:
- cmd: a2ensite {{ pillar['apache2-register-site'][site]['name'] }}
- cmd: apache2-reload
- cmd: apache-reload

{% endif %}
##########################################

+ 1
- 1
rewrite.sls 파일 보기

@@ -7,6 +7,6 @@ a2enmod rewrite:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/rewrite.load
- watch_in:
- cmd: apache2-restart
- cmd: apache-restart

{% endif %}

Loading…
취소
저장