summaryrefslogtreecommitdiff
path: root/baserock_webserver/instance-gitlab-bot-config.yml
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2018-10-17 11:57:06 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2018-10-17 11:57:06 +0100
commit979f3f67c93766806a485132f9df7d8f5fe09239 (patch)
treee4e68a1d7086404252daef56811a68887371b035 /baserock_webserver/instance-gitlab-bot-config.yml
parent15aadb9d990b5d39615e462c81b23ff6a584dec1 (diff)
downloadinfrastructure-979f3f67c93766806a485132f9df7d8f5fe09239.tar.gz
Remove instance-gitlab-bot-config.yml playbook and files
Diffstat (limited to 'baserock_webserver/instance-gitlab-bot-config.yml')
-rw-r--r--baserock_webserver/instance-gitlab-bot-config.yml45
1 files changed, 0 insertions, 45 deletions
diff --git a/baserock_webserver/instance-gitlab-bot-config.yml b/baserock_webserver/instance-gitlab-bot-config.yml
deleted file mode 100644
index aac522a7..00000000
--- a/baserock_webserver/instance-gitlab-bot-config.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-# Instance-specific configuration for the BuildStream Gitlab IRC bot
----
-- hosts: webserver
- vars_files:
- - gitlab-bot/gitlab_bot_secrets.yml
- vars:
- - gitlab_to_irc_url: https://gitlab.com/palvarez89/gitlab-to-irc
- - gitlab_to_irc_branch: master
- - gitlab_to_irc_install_location: /home/fedora/gitlab-to-irc
- tasks:
- - name: Install Git
- dnf: name=git state=latest
- become: yes
-
- - name: Install Node.js
- dnf: name=nodejs state=latest
- become: yes
-
- - name: Download gitlab-to-irc sources
- git:
- repo: "{{ gitlab_to_irc_url }}"
- version: "{{ gitlab_to_irc_branch }}"
- dest: "{{ gitlab_to_irc_install_location }}"
-
- - name: Update packages based on package.json to their latest version.
- npm:
- path: "{{ gitlab_to_irc_install_location }}"
- state: latest
-
- - name: Install bot configuration file
- template:
- src: gitlab-bot/config.js
- dest: "{{ gitlab_to_irc_install_location }}/config.js"
-
- - name: Install service for the bot
- template: src=gitlab-bot/gitlab-bst-bot.service.in dest=/etc/systemd/system/gitlab-bst-bot.service
- become: yes
-
- - name: Restart bot service
- service:
- name: gitlab-bst-bot
- enabled: yes
- state: restarted
- daemon_reload: yes
- become: yes