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: 2013-05-23 | |
description: Simple template to deploy a single compute instance | |
parameters: | |
image: | |
type: string | |
label: Image name or ID | |
description: Image to be used for compute instance | |
default: Fedora22 |
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: 2014-10-16 | |
parameters: | |
servers: | |
type: json | |
# Optional implementation specific parameters | |
snmp_user: | |
type: string | |
snmp_pass: |
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: 2013-05-23 | |
description: > | |
A HOT template that creates a VM instance,assigns it | |
a floating ip and a volume and formats and mounts | |
the volume inside the VM | |
parameters: | |
image: | |
type: string |
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
UCRC='/home/stack/stackrc' | |
OCRC='/home/stack/overcloudrc' | |
OC_PASSWORD=$(grep OS_PASSWORD $OCRC | awk -F '=' {'print $2'}) | |
HOSTAUTH=$(grep OS_AUTH_URL $OCRC | grep -oP '[0-9.]+' | head -1) | |
source $UCRC | |
CTRLIP=$(nova list | awk '/controller-0/ {print $12}' | grep -oP '[0-9.]+') | |
ADMIN_TOKEN=$(\ | |
curl http://$HOSTAUTH:5000/v3/auth/tokens \ | |
-s \ |
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
source ~/stackrc | |
export THT=~/templates/tripleo-heat-templates/ | |
openstack overcloud deploy --templates $THT \ | |
-e $THT/environments/network-isolation.yaml \ | |
-e $THT/environments/network-management.yaml \ | |
-e ~/templates/network-environment.yaml \ | |
-e $THT/environments/storage-environment.yaml \ | |
-e ~/templates/disk-layout.yaml \ | |
-e $THT/environments/puppet-pacemaker.yaml \ | |
--control-scale 3 \ |
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
resource_registry: | |
## Preexisting roles nic configs ## | |
OS::TripleO::Compute::Net::SoftwareConfig: /home/stack/openstack_deployment/nic-configs/compute.yaml | |
OS::TripleO::Controller::Net::SoftwareConfig: /home/stack/openstack_deployment/nic-configs/controller.yaml | |
## Disable unused network from the preexisting Controller role ## | |
OS::TripleO::Controller::Ports::TenantPort: /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml | |
OS::TripleO::Controller::Ports::StorageMgmtPort: /usr/share/openstack-tripleo-heat-templates/network/ports/noop.yaml | |
## ServiceAPI role nic configs and enabled networks ## |
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
- name: Convert roles_data file | |
hosts: localhost | |
gather_facts: false | |
vars: | |
overcloud_deploy_script: /home/stack/overcloud_deploy.sh | |
tasks: | |
- name: Register roles data file location if exists | |
shell: "grep '\\-r\\ \\|\\-\\-roles' {{ overcloud_deploy_script }} | awk {'print $2'}" | |
register: custom_roles_file | |
ignore_errors: true |
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
--- | |
networks: | |
net1: | |
external_connectivity: no | |
name: "data" | |
ip_address: "192.168.24.254" | |
netmask: "255.255.255.0" | |
net2: | |
external_connectivity: yes | |
name: "management" |
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
--- | |
- name: Setup non-root User | |
gather_facts: no | |
hosts: undercloud | |
any_errors_fatal: true | |
# Ensure root access for this | |
become: yes | |
become_user: root | |
vars: | |
local_undercloud_pubkey: "{{ inventory_dir }}/id_rsa_undercloud.pub" |
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
#!/bin/bash | |
timeout 100m openstack overcloud deploy \ | |
--templates {{ install.heat.templates.basedir }} \ | |
-e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml \ | |
--libvirt-type kvm \ | |
--ntp-server {{ install.ntp.server }} \ | |
{% if install.version|default(undercloud_version)|openstack_release < 11 %} | |
--control-scale {{ (install.controller|default({})).nodes|default(0) or groups.controller|default([])|length or '1' }} \ | |
--control-flavor {{ ('controller' in existing_flavors.stdout_lines) | ternary('controller', 'baremetal') }} \ |
OlderNewer