Add support for os-client
By using os-client the nodepool.yaml file does not need to contain any secrets. Change-Id: I3bc873889f36e833d5755333b6ea5b2c0f32e568
This commit is contained in:
@@ -21,9 +21,7 @@ class openstackci::nodepool (
|
|||||||
$yaml_path = '/etc/project-config/nodepool/nodepool.yaml',
|
$yaml_path = '/etc/project-config/nodepool/nodepool.yaml',
|
||||||
$git_source_repo = 'https://git.openstack.org/openstack-infra/nodepool',
|
$git_source_repo = 'https://git.openstack.org/openstack-infra/nodepool',
|
||||||
$revision = 'master',
|
$revision = 'master',
|
||||||
$oscc_clouds = {},
|
$oscc_file_contents,
|
||||||
$oscc_cache = {},
|
|
||||||
$oscc_client = {},
|
|
||||||
$environment = {},
|
$environment = {},
|
||||||
$nodepool_ssh_private_key = '',
|
$nodepool_ssh_private_key = '',
|
||||||
$vhost_name = $::fqdn,
|
$vhost_name = $::fqdn,
|
||||||
@@ -69,4 +67,35 @@ class openstackci::nodepool (
|
|||||||
Class['project_config'],
|
Class['project_config'],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/home/nodepool/.config':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'nodepool',
|
||||||
|
group => 'nodepool',
|
||||||
|
require => [
|
||||||
|
User['nodepool'],
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { '/home/nodepool/.config/openstack':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'nodepool',
|
||||||
|
group => 'nodepool',
|
||||||
|
require => [
|
||||||
|
File['/home/nodepool/.config'],
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { '/home/nodepool/.config/openstack/clouds.yaml':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'nodepool',
|
||||||
|
group => 'nodepool',
|
||||||
|
mode => '0400',
|
||||||
|
content => $oscc_file_contents,
|
||||||
|
require => [
|
||||||
|
File['/home/nodepool/.config/openstack'],
|
||||||
|
User['nodepool'],
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user