Skip to content

Instantly share code, notes, and snippets.

@hardys
hardys / server_with_volume.yaml
Last active August 29, 2015 14:06
ResourceGroup Blog Snippet1
heat_template_version: 2013-05-23
resources:
volume:
type: OS::Cinder::Volume
properties:
size: 1
volume_attachment:
type: OS::Cinder::VolumeAttachment
@hardys
hardys / server_with_volume_group.yaml
Created September 11, 2014 08:43
Resource Group Blog Snippet 2
heat_template_version: 2013-05-23
resources:
rg:
type: OS::Heat::ResourceGroup
properties:
count: 5
resource_def: {type: server_with_volume.yaml}
@hardys
hardys / env_server_with_volume.yaml
Created September 11, 2014 09:03
ResourceGroup Blog Snippet3
resource_registry:
My::Server::WithVolume: server_with_volume.yaml
@hardys
hardys / server_with_volume_group.yaml
Last active August 29, 2015 14:06
ResourceGroup Blog Snippet4
heat_template_version: 2013-05-23
resources:
rg:
type: OS::Heat::ResourceGroup
properties:
count: 5
resource_def: {type: My::Server:WithVolume}
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
CEILOMETER_BACKEND=mongo
enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
enable_service c-bak
enable_service t-api
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
heat_template_version: 2013-05-23
resources:
random:
type: OS::Heat::RandomString
Resoure Chain testing
---
version: '2.0'
test_nodes_with_profile:
description: Find nodes with a specific profile tag
input:
- profile: test
tasks:
get_available_nodes:
{"update_identifier": "1500495964", "bootstrap_server_id": "ffdc8a8d-2db2-4851-89cc-5f10a052e356", "deploy_resource_name": "0", "role_data": "{\"config_settings\": {}, \"docker_config\": {\"step_1\": {\"memcached\": {\"command\": [\"/bin/bash\", \"-c\", \"source /etc/sysconfig/memcached; /usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS\"], \"image\": \"192.168.1.16:8787/tripleoupstream/centos-binary-memcached:latest\", \"net\": \"host\", \"privileged\": false, \"restart\": \"always\", \"start_order\": 1, \"volumes\": [\"/etc/hosts:/etc/hosts:ro\", \"/etc/localtime:/etc/localtime:ro\", \"/etc/puppet:/etc/puppet:ro\", \"/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro\", \"/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro\", \"/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro\", \"/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro\", \"/dev/log:/dev/log\", \"/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro\", \"/var/lib/c
@hardys
hardys / install-config.yaml
Last active February 4, 2020 09:52
Sample install-config.yaml
apiVersion: v1
baseDomain: test.metalkube.org
networking:
networkType: OVNKubernetes
machineCIDR: fd2e:6f44:5dd8:c956::/120
clusterNetwork:
- cidr: fd01::/48
hostPrefix: 64
serviceNetwork:
- fd02::/112