[go: up one dir, main page]

Skip to content

Commit

Permalink
Katello 3.7 pipeline bits
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathon Turel authored and ehelms committed Jun 15, 2018
1 parent 33163d1 commit c64bc85
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 0 deletions.
156 changes: 156 additions & 0 deletions pipelines/pipeline_katello_36_to_37_upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
- hosts: localhost
vars:
forklift_name: pipeline-katello-3.6-3.7
forklift_boxes:
pipeline-katello-3.6-3.7-centos7:
box: centos7
memory: 6144
pipeline-proxy-3.6-3.7-centos7:
box: centos7
memory: 3072
roles:
- forklift

- hosts:
- pipeline-katello-3.6-3.7-centos7
- pipeline-proxy-3.6-3.7-centos7
become: yes
vars:
puppet_repositories_version: 4
katello_repositories_version: 3.6
foreman_repositories_version: 1.17
foreman_installer_skip_installer: true
roles:
- umask
- selinux
- etc_hosts
- epel_repositories
- puppet_repositories
- foreman_repositories
- katello_repositories
- update_os_packages
- haveged
- disable_firewall

- hosts: pipeline-katello-3.6-3.7-centos7
become: yes
vars:
foreman_installer_scenario: katello
foreman_installer_options_internal_use_only:
- "--foreman-admin-password {{ foreman_installer_admin_password }}"
- "--disable-system-checks"
foreman_installer_additional_packages:
- katello
roles:
- foreman_installer

- hosts: pipeline-proxy-3.6-3.7-centos7
become: yes
vars:
foreman_proxy_content_server: pipeline-katello-3.6-3.7-centos7
foreman_installer_scenario: foreman-proxy-content
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
- "--foreman-proxy-trusted-hosts {{ server_fqdn.stdout }}"
- "--foreman-proxy-trusted-hosts {{ ansible_nodename }}"
- "--foreman-proxy-foreman-base-url https://{{ server_fqdn.stdout }}"
- "--foreman-proxy-register-in-foreman true"
- "--foreman-proxy-oauth-consumer-key {{ oauth_consumer_key.stdout }}"
- "--foreman-proxy-oauth-consumer-secret {{ oauth_consumer_secret.stdout }}"
- "--foreman-proxy-content-certs-tar {{ foreman_proxy_content_certs_tar }}"
- "--foreman-proxy-content-parent-fqdn {{ server_fqdn.stdout }}"
- "--puppet-server-foreman-url https://{{ server_fqdn.stdout }}"
foreman_installer_additional_packages:
- foreman-installer-katello
roles:
- foreman_proxy_content
- foreman_installer

- hosts: pipeline-katello-3.6-3.7-centos7
become: true
vars:
bats_tests:
- fb-test-katello.bats
- fb-content-katello.bats
roles:
- bats

- hosts: pipeline-katello-3.6-3.7-centos7
become: true
vars:
katello_repositories_version: 3.7
foreman_repositories_version: 1.18
foreman_installer_upgrade: True
foreman_repositories_environment: staging
katello_repositories_environment: staging
foreman_installer_scenario: katello
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
roles:
- foreman_repositories
- katello_repositories
- foreman_installer

- hosts: pipeline-katello-3.6-3.7-centos7
become: true
vars:
bats_tests:
- fb-test-katello.bats
- fb-destroy-organization.bats
- fb-content-katello.bats
- fb-proxy.bats
- fb-finish.bats
roles:
- bats

# Upgrade to Puppet 5
# http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_4_to_5#Prepare-And-Run-The-Installer
- hosts:
- pipeline-katello-3.6-3.7-centos7
- pipeline-proxy-3.6-3.7-centos7
become: true
vars:
puppet_repositories_version: 5
roles:
- puppet_repositories

- hosts:
- pipeline-katello-3.6-3.7-centos7
- pipeline-proxy-3.6-3.7-centos7
become: true
tasks:
- name: 'Update packages'
yum:
name: '*'
state: latest

- hosts: pipeline-katello-3.6-3.7-centos7
become: true
vars:
foreman_installer_scenario: katello
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
roles:
- foreman_installer

- hosts: pipeline-proxy-3.6-3.7-centos7
become: true
vars:
foreman_installer_scenario: foreman-proxy-content
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
roles:
- foreman_installer

# Validate puppet upgrade
- hosts: pipeline-katello-3.6-3.7-centos7
become: true
vars:
bats_tests:
- fb-test-katello.bats
- fb-destroy-organization.bats
- fb-content-katello.bats
- fb-proxy.bats
- fb-finish.bats
roles:
- bats
83 changes: 83 additions & 0 deletions pipelines/pipeline_katello_37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
- hosts: localhost
vars:
forklift_name: pipeline-katello-3.7
forklift_boxes:
pipeline-katello-3.7-centos7:
box: centos7
memory: 6144
pipeline-proxy-3.7-centos7:
box: centos7
memory: 3072
roles:
- forklift

- hosts:
- pipeline-katello-3.7-centos7
- pipeline-proxy-3.7-centos7
become: yes
vars:
puppet_repositories_version: 4
katello_repositories_version: 3.7
foreman_repositories_version: 1.18
foreman_repositories_environment: staging
katello_repositories_environment: staging
foreman_installer_skip_installer: true
roles:
- umask
- selinux
- etc_hosts
- epel_repositories
- puppet_repositories
- foreman_repositories
- katello_repositories
- update_os_packages
- haveged
- disable_firewall
- foreman_installer

- hosts: pipeline-katello-3.7-centos7
become: yes
vars:
foreman_installer_scenario: katello
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
- "--foreman-admin-password {{ foreman_installer_admin_password }}"
foreman_installer_additional_packages:
- katello
roles:
- foreman_installer

- hosts: pipeline-proxy-3.7-centos7
become: yes
vars:
foreman_proxy_content_server: pipeline-katello-3.7-centos7
foreman_installer_scenario: foreman-proxy-content
foreman_installer_options_internal_use_only:
- "--disable-system-checks"
- "--foreman-proxy-trusted-hosts {{ server_fqdn.stdout }}"
- "--foreman-proxy-trusted-hosts {{ ansible_nodename }}"
- "--foreman-proxy-foreman-base-url https://{{ server_fqdn.stdout }}"
- "--foreman-proxy-register-in-foreman true"
- "--foreman-proxy-oauth-consumer-key {{ oauth_consumer_key.stdout }}"
- "--foreman-proxy-oauth-consumer-secret {{ oauth_consumer_secret.stdout }}"
- "--foreman-proxy-content-certs-tar {{ foreman_proxy_content_certs_tar }}"
- "--foreman-proxy-content-parent-fqdn {{ server_fqdn.stdout }}"
- "--puppet-server-foreman-url https://{{ server_fqdn.stdout }}"
foreman_installer_additional_packages:
- foreman-installer-katello
roles:
- foreman_proxy_content
- foreman_installer

- hosts: pipeline-katello-3.7-centos7
become: true
vars:
bats_tests:
- fb-test-katello.bats
- fb-test-puppet.bats
- fb-content-katello.bats
- fb-proxy.bats
- fb-destroy-organization.bats
- fb-finish.bats
roles:
- bats
8 changes: 8 additions & 0 deletions vagrant/config/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ installers:
- 'debian9'
- 'ubuntu1604'

- foreman: '1.18'
katello: '3.7'
puppet: 5
boxes:
- 'centos7'
- 'debian9'
- 'ubuntu1604'

- foreman: 'nightly'
katello: 'nightly'
puppet: 5
Expand Down

0 comments on commit c64bc85

Please sign in to comment.