Developing a new role is simple in TripleO-Ansible. The TripleO-Ansible software developer kit, within the code repository, provides for everything needed to generate documentation, tests and role a wire-frame. TripleO-Ansible uses a playbook to create new roles, add the new role to the ZuulCI job configuration, and document the new role.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: rocky | |
description: > | |
Software Config to drive os-net-config to configure VLANs for the Controller role. | |
parameters: | |
ControlPlaneIp: | |
default: '' | |
description: IP address/subnet on the ctlplane network | |
type: string | |
ControlPlaneSubnetCidr: | |
default: 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export HOME="${HOME:-~/}" | |
export THT="/usr/share/openstack-tripleo-heat-templates" | |
export NTP_SERVER="time.google.com" | |
export VIRT_TYPE="$([ "$(egrep -c '(vmx|svm)' /proc/cpuinfo)" = 0 ] && echo qemu || echo kvm)" | |
export STACK_NAME="rk-openstack-0" | |
function tmux_execute { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[baseos] | |
name=CentOS Linux $releasever - BaseOS | |
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra | |
#baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial | |
[appstream] | |
name=CentOS Linux $releasever - AppStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMIT_MSG="The lower constraint file has been removed | |
This file, and its tests, are not useful for tripleo so we're | |
removing because they're now becoming problematic." | |
git clone https://github.com/openstack/governance | |
pushd governance | |
python <<EOC | |
import yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 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 |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TMATE_FILE=$($(command -v python3 || command -v python) <<EOC | |
import requests | |
r = requests.get( | |
'https://api.github.com/repos/tmate-io/tmate/releases/latest' | |
) | |
releases = r.json() | |
amd64_releases = [ | |
i for i in releases['assets'] | |
if 'amd64' in i['name'] and not 'dbg' in i['name'] | |
][0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- connection: local | |
hosts: localhost | |
pre_tasks: | |
- name: Check for required inputs | |
fail: | |
msg: > | |
Input missing `{{ item }}` | |
when: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEFAULT] | |
# | |
# From nova.conf | |
# | |
# | |
# Availability zone for internal services. For more information, refer to the | |
# documentation. (string value) | |
#internal_service_availability_zone = internal |