forked from VeerMuchandi/openshift-on-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-install.yml
35 lines (30 loc) · 1.22 KB
/
post-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- hosts: nodes
# sudo: True
remote_user: veer
become: True
become_method: sudo
tasks:
- name: Create Technology Preview File
lineinfile: dest=/etc/origin/master/tech-preview.js state=present create=yes line="window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.pipelines= true;" backup=yes
- name: Add techpreview script - step 1
lineinfile: dest=/etc/origin/master/master-config.yaml state=present create=no insertafter="^ publicURL" line=" extensionScripts:"
- name: Add techpreview script - step 2
lineinfile: dest=/etc/origin/master/master-config.yaml state=present create=no insertafter="^ extensionScripts" line=" - /etc/origin/master/tech-preview.js"
- name: Enable Jenkins Plugin
blockinfile:
dest: /etc/origin/master/master-config.yaml
create: no
state: present
marker: "# {mark} ANSIBLE MANAGED BLOCK"
insertafter: EOF
content: |
jenkinsPipelineConfig:
autoProvisionEnabled: true
parameters: null
serviceName: jenkins
templateName: jenkins-ephemeral
templateNamespace: openshift
register: addedJenkinsPlugin
- name: Restart Master
service: name=atomic-openshift-master state=restarted