Add a run-nodepool job
Change-Id: I9d0721a7db7f355683895fca5a2a5f152d147034
This commit is contained in:
parent
af7a431f5b
commit
c34860d166
24
.zuul.yaml
24
.zuul.yaml
@ -173,6 +173,28 @@
|
|||||||
- playbooks/group_vars/eavesdrop.yaml
|
- playbooks/group_vars/eavesdrop.yaml
|
||||||
- testinfra/test_eavesdrop.py
|
- testinfra/test_eavesdrop.py
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: system-config-run-nodepool
|
||||||
|
parent: system-config-run
|
||||||
|
description: |
|
||||||
|
Run the playbook for nodepool.
|
||||||
|
nodeset:
|
||||||
|
nodes:
|
||||||
|
- name: bridge.openstack.org
|
||||||
|
label: ubuntu-bionic
|
||||||
|
- name: nl01.openstack.org
|
||||||
|
label: ubuntu-xenial
|
||||||
|
- name: nb01.openstack.org
|
||||||
|
label: ubuntu-xenial
|
||||||
|
files:
|
||||||
|
- .zuul.yaml
|
||||||
|
- playbooks/group_vars/nodepool.yaml
|
||||||
|
- playbooks/group_vars/nodepool-builder.yaml
|
||||||
|
- playbooks/group_vars/nodepool-launcher.yaml
|
||||||
|
- playbooks/roles/configure-openstacksdk/
|
||||||
|
- playbooks/templates/clouds/
|
||||||
|
- testinfra/test_nodepool.py
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- system-config-zuul-role-integration
|
- system-config-zuul-role-integration
|
||||||
@ -184,6 +206,7 @@
|
|||||||
- puppet-beaker-rspec-puppet-4-centos-7-infra-system-config
|
- puppet-beaker-rspec-puppet-4-centos-7-infra-system-config
|
||||||
- system-config-run-base
|
- system-config-run-base
|
||||||
- system-config-run-eavesdrop
|
- system-config-run-eavesdrop
|
||||||
|
- system-config-run-nodepool
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- puppet-beaker-rspec-infra-system-config
|
- puppet-beaker-rspec-infra-system-config
|
||||||
@ -192,3 +215,4 @@
|
|||||||
- puppet-beaker-rspec-puppet-4-centos-7-infra-system-config
|
- puppet-beaker-rspec-puppet-4-centos-7-infra-system-config
|
||||||
- system-config-run-base
|
- system-config-run-base
|
||||||
- system-config-run-eavesdrop
|
- system-config-run-eavesdrop
|
||||||
|
- system-config-run-nodepool
|
@ -26,6 +26,7 @@
|
|||||||
- hosts: nodepool-launcher:nodepool-builder:!disabled
|
- hosts: nodepool-launcher:nodepool-builder:!disabled
|
||||||
strategy: free
|
strategy: free
|
||||||
roles:
|
roles:
|
||||||
|
- minimal-nodepool
|
||||||
- configure-openstacksdk
|
- configure-openstacksdk
|
||||||
|
|
||||||
- hosts: "puppet:!disabled"
|
- hosts: "puppet:!disabled"
|
||||||
|
9
playbooks/roles/minimal-nodepool/README.rst
Normal file
9
playbooks/roles/minimal-nodepool/README.rst
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Create minimal nodepool requirements so that we can manage nodepool servers
|
||||||
|
with ansible and puppet while we transition.
|
||||||
|
|
||||||
|
NOTE: THis likely isn't what we want long term. Should have a proper nodepool
|
||||||
|
role or use windmill.
|
||||||
|
|
||||||
|
**Role Variables**
|
||||||
|
|
||||||
|
* None
|
12
playbooks/roles/minimal-nodepool/tasks/main.yaml
Normal file
12
playbooks/roles/minimal-nodepool/tasks/main.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
- name: Add the nodepool group
|
||||||
|
group:
|
||||||
|
name: nodepool
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Add the nodepool user
|
||||||
|
user:
|
||||||
|
name: nodepool
|
||||||
|
group: nodepool
|
||||||
|
home: /home/nodepool
|
||||||
|
create_home: yes
|
||||||
|
shell: /bin/bash
|
@ -107,7 +107,7 @@ clouds:
|
|||||||
auth_url: https://osa.continuous.pw:5000
|
auth_url: https://osa.continuous.pw:5000
|
||||||
username: '{{ nodepool_limestone_username }}'
|
username: '{{ nodepool_limestone_username }}'
|
||||||
password: '{{ nodepool_limestone_password }}'
|
password: '{{ nodepool_limestone_password }}'
|
||||||
project_name: '{{ limestone_project }}'
|
project_name: '{{ nodepool_limestone_project }}'
|
||||||
user_domain_name: default
|
user_domain_name: default
|
||||||
project_domain_name: default
|
project_domain_name: default
|
||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
|
23
testinfra/test_nodepool.py
Normal file
23
testinfra/test_nodepool.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright 2018 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
testinfra_hosts = ['nl01.openstack.org', 'nb01.openstack.org']
|
||||||
|
|
||||||
|
|
||||||
|
def test_clouds_yaml(host):
|
||||||
|
clouds_yaml = host.file('/home/nodepool/.config/openstack/clouds.yaml')
|
||||||
|
assert clouds_yaml.exists
|
||||||
|
|
||||||
|
assert b'password' in clouds_yaml.content
|
Loading…
x
Reference in New Issue
Block a user