mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
Update ansible test
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
21a606688b
commit
751e5c5444
9 changed files with 58 additions and 60 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- hosts: github_primary
|
||||
- name: Configure the GHE Instance
|
||||
hosts: github_primary
|
||||
vars:
|
||||
demo_github_initial_user: "{{ hostvars['localhost'].local_user }}"
|
||||
github_host: "{{ hostvars['github_primary'].ansible_host }}"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
####################
|
||||
# GHE config apply #
|
||||
####################
|
||||
- name: ghe config apply
|
||||
- name: GHE Config Apply
|
||||
ansible.builtin.command: ghe-config-apply
|
||||
poll: 0
|
||||
async: 300
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
---
|
||||
- name: Wait for admin port to open
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- metrics
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
||||
block:
|
||||
- name: Wait for Admin port to come up (Port 8443)
|
||||
## Doc: http://docs.ansible.com/ansible/latest/modules/wait_for_module.html
|
||||
|
@ -77,12 +86,3 @@
|
|||
ansible.builtin.service:
|
||||
name: collectd
|
||||
state: restarted
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- metrics
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
---
|
||||
- name: GHE API Configuration
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
block:
|
||||
# ##################################
|
||||
# # Run config to take in settings #
|
||||
|
@ -59,11 +66,3 @@
|
|||
- "/tmp/ghe-license.ghl"
|
||||
- "/tmp/settings.json"
|
||||
- "/tmp/ldap-settings.json"
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
---
|
||||
- name: GHE Config apply
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
||||
block:
|
||||
########################################
|
||||
# Copy the script to the local machine #
|
||||
|
@ -23,11 +31,3 @@
|
|||
poll: 0
|
||||
args:
|
||||
executable: "/bin/bash"
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
---
|
||||
- name: GHE Initial configuration
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
||||
block:
|
||||
###############################
|
||||
# Wait for admin port to open #
|
||||
|
@ -78,11 +86,3 @@
|
|||
- name: Set the GitHub Admin password fact
|
||||
ansible.builtin.set_fact:
|
||||
github_admin_password: "{{ github_admin_password }}"
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
---
|
||||
- name: GHE LDAP configuration
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- openldap
|
||||
block:
|
||||
#######################################################
|
||||
# Copy License file to GHE to decrypt file and upload #
|
||||
|
@ -24,9 +29,3 @@
|
|||
delay: 2
|
||||
register: http_ldapconfig_result
|
||||
until: http_ldapconfig_result.rc == 0
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- openldap
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
---
|
||||
- name: Configure the GHE Instance
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
block:
|
||||
######################################################
|
||||
# Need to run the tasks to stand up the GHE instance #
|
||||
######################################################
|
||||
# Configure the base system
|
||||
- ansible.builtin.include_tasks: ghe-initial-configuration.yml
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
||||
- name: Configure the GHE LDAP
|
||||
tags:
|
||||
- openldap
|
||||
block:
|
||||
############################################################
|
||||
# Need to run the tasks to config LDAP on the GHE instance #
|
||||
############################################################
|
||||
# Configure the base system
|
||||
- ansible.builtin.include_tasks: ghe-ldap-configuration.yml
|
||||
tags:
|
||||
- openldap
|
||||
|
||||
- name: Configure the GHE Instance Block
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
block:
|
||||
######################################################
|
||||
# Need to run the tasks to stand up the GHE instance #
|
||||
######################################################
|
||||
# Configure the base system
|
||||
- ansible.builtin.include_tasks: ghe-api-config-apply.yml
|
||||
tags:
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
---
|
||||
- name: Splunk settings
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- splunk
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
block:
|
||||
###############################
|
||||
# Wait for admin port to open #
|
||||
|
@ -57,12 +65,3 @@
|
|||
register: http_splunk_config_result
|
||||
until: http_splunk_config_result.rc == 0
|
||||
notify: ghe config apply
|
||||
|
||||
######################
|
||||
# Set the tags block #
|
||||
######################
|
||||
tags:
|
||||
- splunk
|
||||
- github
|
||||
- ghe_primary
|
||||
- initialize
|
||||
|
|
Loading…
Reference in a new issue