Set container time to UTC

Create new class docker::container for
related tweaks necessary to apply to all
Docker containers.

Change-Id: Ibba7bf58da0aac1d760d3550edb9a9508d71b1c4
Closes-bug: #1372439
This commit is contained in:
Matthew Mosesohn 2014-09-22 16:52:03 +04:00
parent c0af7efa8b
commit b4aaee7e23
10 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,13 @@
class docker::container (
$tz = 'UTC',
$zoneinfo_dir = '/usr/share/zoneinfo',
) {
if $tz != false {
file { '/etc/localtime':
ensure => present,
target => "${zoneinfo_dir}/${tz}"
}
}
}

View File

@ -35,9 +35,12 @@ node default {
Exec {path => '/usr/bin:/bin:/usr/sbin:/sbin'}
Class['docker::container'] ->
Class['nailgun::astute'] ->
Class['nailgun::supervisor']
class {'docker::container': }
class {"nailgun::astute":
production => $production,
rabbitmq_host => $::fuel_settings['ADMIN_NETWORK']['ipaddress'],

View File

@ -63,6 +63,7 @@ node default {
$gem_source =
"http://${::fuel_settings['ADMIN_NETWORK']['ipaddress']}:8080/gems/"
class { 'docker::container': }
class { "nailgun::cobbler":
production => $production,

View File

@ -14,6 +14,9 @@ package { 'python-psycopg2':
case $production {
'prod', 'docker': {
class {'docker::container': }
class { 'keystone':
admin_token => $::fuel_settings['keystone']['admin_token'],
catalog_type => 'sql',

View File

@ -11,6 +11,7 @@ else {
$env_path = "/usr"
$staticdir = "/usr/share/nailgun/static"
Class["docker::container"] ->
Class["nailgun::user"] ->
Class["nailgun::packages"] ->
Class["nailgun::venv"] ->
@ -63,6 +64,8 @@ $mco_connector = "rabbitmq"
#deprecated
$puppet_master_hostname = "${::fuel_settings['HOSTNAME']}.${::fuel_settings['DNS_DOMAIN']}"
class {'docker::container': }
class { "nailgun::user":
nailgun_group => $nailgun_group,
nailgun_user => $nailgun_user,

View File

@ -34,8 +34,9 @@ node default {
Exec {path => '/usr/bin:/bin:/usr/sbin:/sbin'}
class {'docker::container': }
class { 'nailgun::nginx':
class { 'nailgun::nginx':
production => $production,
staticdir => $staticdir,
templatedir => $staticdir,

View File

@ -25,10 +25,12 @@ node default {
Exec {path => '/usr/bin:/bin:/usr/sbin:/sbin'}
Class['docker::container'] ->
Class['nailgun::packages'] ->
Class['nailgun::ostf'] ->
Class['nailgun::supervisor']
class {'docker::container': }
class { "nailgun::packages": }
class { "nailgun::ostf":

View File

@ -17,6 +17,8 @@ $database_port = "5432"
$database_user = $::fuel_settings['postgres']['nailgun_user']
$database_passwd = $::fuel_settings['postgres']['nailgun_password']
class {'docker::container': }
class { "nailgun::database":
user => $database_user,
password => $database_passwd,

View File

@ -20,6 +20,7 @@ $mco_password = $::fuel_settings['mcollective']['password']
$mco_vhost = "mcollective"
$stomp = false
class {'docker::container': }
user { "rabbitmq":
ensure => present,

View File

@ -1,6 +1,8 @@
$fuel_settings = parseyaml($astute_settings_yaml)
$fuel_version = parseyaml($fuel_version_yaml)
class {'docker::container': }
class {"::rsyslog::server":
enable_tcp => true,
enable_udp => true,