fuel-library/deployment/puppet/nailgun/manifests/client.pp
Timur Nurlygayanov f68bf3260c Put fuelclient configuration file in root's $HOME
System-wide fuelclient configuration has been deprecated.

Related-Bug: 1458361
Co-authored-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
Co-authored-by: Bartłomiej Piotrowski <bpiotrowski@mirantis.com>
Depends-on: Ia17c8edbdd71a74318d3237a47d4b5650934c378
Change-Id: I08fd7bf965af1552d16671636c4f706c5a2d6a11
2015-11-03 09:35:28 +00:00

27 lines
644 B
Puppet

# == Class: nailgun::client
# Configures the fuel client.
class nailgun::client (
$server = '127.0.0.1',
$port = '8000',
$keystone_user = 'admin',
$keystone_pass = 'admin',
$keystone_port = '5000',
) {
include nailgun::packages
$config_path = '/root/.config/fuel'
exec { "mkdir -p ${config_path}":
path => ['/bin', '/usr/bin'],
unless => "test -d ${config_path}",
}
file { "${config_path}/fuel_client.yaml":
owner => 'root',
group => 'root',
mode => '0600',
content => template("${module_name}/fuel_client.yaml.erb"),
require => Exec["mkdir -p ${config_path}"],
}
}