Skip to content

Instantly share code, notes, and snippets.

View cloudnull's full-sized avatar
👨‍🚒
Yup

Kevin Carter cloudnull

👨‍🚒
Yup
View GitHub Profile
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
#!/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 {
[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
@cloudnull
cloudnull / tripleo-repo-scraper.sh
Created December 8, 2020 19:20
tripleo repo scraper
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
@cloudnull
cloudnull / containerfile-converter.py
Last active May 7, 2020 19:09
ooo dockerfile converter
#!/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
@cloudnull
cloudnull / solus-oh-my-zsh-theme.png
Last active September 30, 2024 15:26
Solus zsh theme for oh-my-zsh
solus-oh-my-zsh-theme.png
@cloudnull
cloudnull / install-n-start-tmate.sh
Last active September 6, 2022 17:47
Install the latest static tmate and start a session
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]
---
- connection: local
hosts: localhost
pre_tasks:
- name: Check for required inputs
fail:
msg: >
Input missing `{{ item }}`
when:
@cloudnull
cloudnull / tripleo-ansible-role-syllabus.md
Last active October 22, 2019 10:09
Brno bootcamp syllabus

Developing a new role

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.

Running the role generation playbook

@cloudnull
cloudnull / input.ini
Created July 22, 2019 20:18
enhanced comment parsing config_template https://review.opendev.org/#/c/672170
[DEFAULT]
#
# From nova.conf
#
#
# Availability zone for internal services. For more information, refer to the
# documentation. (string value)
#internal_service_availability_zone = internal