Skip to content

Commit 988ca94

Browse files
authored
Merge pull request #9 from stackhpc/smslab-cgg
AUFN terraform updates from CGG workshop
2 parents 3d8d105 + e279634 commit 988ca94

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

a-seed-from-nothing.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ sudo setenforce 0
2727
# Useful packages
2828
if [[ "${CLOUD_USER}" = "ubuntu" ]]
2929
then
30-
sudo apt install -y git tmux lvm2
30+
sudo apt update
31+
sudo apt install -y git tmux lvm2 iptables
3132
else
3233
sudo dnf install -y git tmux lvm2
3334
fi
@@ -108,10 +109,14 @@ then
108109
neutron_plugin_agent: "ovn"
109110
neutron_ovn_dhcp_agent: "yes"
110111
EOF
111-
cat <<EOF | sudo tee -a config/src/kayobe-config/etc/kayobe/kolla/globals.yml
112+
cat <<EOF | sudo tee -a config/src/kayobe-config/etc/kayobe/bifrost.yml
112113
kolla_bifrost_extra_kernel_options:
113114
- "console=ttyS0"
115+
EOF
116+
cat <<EOF | sudo tee -a config/src/kayobe-config/etc/kayobe/kolla.yml
114117
kolla_enable_ovn: yes
118+
EOF
119+
cat <<EOF | sudo tee -a config/src/kayobe-config/etc/kayobe/neutron.yml
115120
kolla_neutron_ml2_type_drivers:
116121
- geneve
117122
- vlan

openstack-device.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "null_resource" "bastion" {
2828
count = var.create_bastion ? 1 : 0
2929
connection {
3030
host = openstack_compute_floatingip_associate_v2.bastion[0].floating_ip
31-
user = "centos"
31+
user = var.image_user
3232
private_key = tls_private_key.default.private_key_pem
3333
agent = false
3434
timeout = "300s"
@@ -84,6 +84,9 @@ resource "openstack_compute_floatingip_associate_v2" "registry" {
8484

8585
resource "null_resource" "registry" {
8686
connection {
87+
bastion_user = var.create_bastion ? var.image_user : null
88+
bastion_private_key = var.create_bastion ? tls_private_key.default.private_key_pem : null
89+
bastion_host = var.create_bastion ? openstack_compute_floatingip_associate_v2.bastion[0].floating_ip : null
8790
user = var.image_user
8891
private_key = tls_private_key.default.private_key_pem
8992
agent = false
@@ -131,6 +134,10 @@ resource "openstack_compute_instance_v2" "lab" {
131134
name = var.lab_net_ipv4
132135
}
133136

137+
timeouts {
138+
create = "30m"
139+
}
140+
134141
depends_on = [openstack_compute_keypair_v2.ufn_lab_key, null_resource.registry]
135142
}
136143

@@ -150,6 +157,9 @@ resource "null_resource" "lab" {
150157
count = var.lab_count
151158

152159
connection {
160+
bastion_user = var.create_bastion ? var.image_user : null
161+
bastion_private_key = var.create_bastion ? tls_private_key.default.private_key_pem : null
162+
bastion_host = var.create_bastion ? openstack_compute_floatingip_associate_v2.bastion[0].floating_ip : null
153163
user = var.image_user
154164
private_key = tls_private_key.default.private_key_pem
155165
agent = false

pull-retag-push-images.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ if [ ! "$(sudo docker ps -q -f name=registry)" ]; then
4242
fi
4343

4444
tag=${1:-yoga}
45-
images="kolla/${DISTRO}-source-kolla-toolbox
45+
images="kolla/${DISTRO}-source-bifrost-deploy
46+
kolla/${DISTRO}-source-kolla-toolbox
4647
kolla/${DISTRO}-source-haproxy
4748
kolla/${DISTRO}-source-mariadb-server
4849
kolla/${DISTRO}-source-mariadb-clustercheck
@@ -95,6 +96,7 @@ kolla/${DISTRO}-source-prometheus-node-exporter
9596
kolla/${DISTRO}-source-prometheus-elasticsearch-exporter
9697
kolla/${DISTRO}-source-prometheus-mysqld-exporter
9798
kolla/${DISTRO}-source-prometheus-openstack-exporter
99+
kolla/${DISTRO}-source-prometheus-libvirt-exporter
98100
kolla/${DISTRO}-source-grafana
99101
kolla/${DISTRO}-source-cinder-scheduler
100102
kolla/${DISTRO}-source-cinder-volume
@@ -103,8 +105,7 @@ kolla/${DISTRO}-source-cinder-api
103105
kolla/${DISTRO}-source-ovn-controller
104106
kolla/${DISTRO}-source-ovn-northd
105107
kolla/${DISTRO}-source-ovn-nb-db-server
106-
kolla/${DISTRO}-source-ovn-sb-db-server
107-
kolla/${DISTRO}-source-bifrost-deploy"
108+
kolla/${DISTRO}-source-ovn-sb-db-server"
108109

109110
for image in $images; do
110111
sudo docker pull $image:$tag

0 commit comments

Comments
 (0)