Merge "Add support for os-client"

This commit is contained in:
Jenkins 2015-09-30 18:33:51 +00:00 committed by Gerrit Code Review
commit 18baea0c3c

View File

@ -21,9 +21,7 @@ class openstackci::nodepool (
$yaml_path = '/etc/project-config/nodepool/nodepool.yaml',
$git_source_repo = 'https://git.openstack.org/openstack-infra/nodepool',
$revision = 'master',
$oscc_clouds = {},
$oscc_cache = {},
$oscc_client = {},
$oscc_file_contents,
$environment = {},
$nodepool_ssh_private_key = '',
$vhost_name = $::fqdn,
@ -69,4 +67,35 @@ class openstackci::nodepool (
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'],
],
}
}