Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions etc/kayobe/environments/ci-aio/controllers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
###############################################################################
# Controller node configuration.

# User with which to access the controllers via SSH during bootstrap, in order
# to setup the Kayobe user account. Default is {{ os_distribution }}.
controller_bootstrap_user: "{{ os_distribution if os_distribution == 'ubuntu' else 'cloud-user' }}"
7 changes: 7 additions & 0 deletions etc/kayobe/environments/ci-builder/seed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
###############################################################################
# Seed node configuration.

# User with which to access the seed via SSH during bootstrap, in order
# to setup the Kayobe user account. Default is {{ os_distribution }}.
seed_bootstrap_user: "{{ os_distribution if os_distribution == 'ubuntu' else 'cloud-user' }}"
8 changes: 4 additions & 4 deletions terraform/aio/vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ resource "openstack_compute_instance_v2" "kayobe-aio" {

provisioner "file" {
source = "scripts/configure-local-networking.sh"
destination = "/home/centos/configure-local-networking.sh"
destination = "/home/cloud-user/configure-local-networking.sh"

connection {
type = "ssh"
host = self.access_ip_v4
user = "centos"
user = "cloud-user"
private_key = file(var.ssh_private_key)
}
}

provisioner "remote-exec" {
inline = [
"sudo bash /home/centos/configure-local-networking.sh"
"sudo bash /home/cloud-user/configure-local-networking.sh"
]

connection {
type = "ssh"
host = self.access_ip_v4
user = "centos"
user = "cloud-user"
private_key = file(var.ssh_private_key)
}

Expand Down