move ssh on qadevel-stg back to a port that works, make git setup conditional

This commit is contained in:
Tim Flink 2015-02-02 05:53:13 +00:00
parent 768a4f9f21
commit 21ab50a371
4 changed files with 8 additions and 2 deletions

View file

@ -25,6 +25,7 @@ external_hostname: qadevel-stg.qa.fedoraproject.org
mariadb_host: db-qa01.qa.fedoraproject.org
mariadb_user: '{{ qadevel_stg_mariadb_user }}'
mariadb_password: '{{ qadevel_stg_mariadb_password }}'
enable_phabricator_git: False
phabricator_db_name: phabricator-stg
phabricator_vcs_user: git
phabricator_daemon_user: phabdaemon

View file

@ -11,7 +11,7 @@ beaker01.qa.fedoraproject.org
qadevel.qa.fedoraproject.org
[qadevel-stg]
qadevel-stg.qa.fedoraproject.org ansible_ssh_port=222
qadevel-stg.qa.fedoraproject.org
[arm-packager]
arm03-packager00.cloud.fedoraproject.org

View file

@ -14,7 +14,7 @@
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
Port 222
Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

View file

@ -46,6 +46,7 @@
- name: create git repo root for phabricator
file: path={{ phabricator_repodir }} state=directory owner={{ phabricator_daemon_user }} group={{ phabricator_daemon_user }} mode=1755
when: enable_phabricator_git
- name: create file directory for phabricator
file: path={{ phabricator_filedir }} state=directory owner=apache group=apache mode=1755
@ -70,15 +71,19 @@
- name: generate phabricator git hook
template: src=phabricator-ssh-hook.sh.j2 dest=/etc/phabricator-ssh-hook.sh owner=root group=root mode=0755
when: enable_phabricator_git
- name: generate phabricator ssh config for vcs
template: src=phabricator-sshd.conf.j2 dest=/etc/ssh/phabricator-sshd.conf owner=root group=root mode=0600
when: enable_phabricator_git
- name: generate phabricator ssh service file
template: src=phabricator-sshd.service.j2 dest=/lib/systemd/system/phabricator-sshd.service owner=root group=root mode=0644
when: enable_phabricator_git
- name: start and enable phabricator sshd service
service: name=phabricator-sshd enabled=yes state=started
when: enable_phabricator_git
- name: generate phabricator phd service file
template: src=phd.service.j2 dest=/lib/systemd/system/phd.service owner=root group=root mode=0644