dcos-grid CHANGELOG
===================
+0.5.2
+-----
+- bug fix: Bootstrap node's nginx restart command.
+- adds the `['dcos-grid']['cloud-config']['timezone']` attribute.
+
0.5.1
-----
- adds `DC/OS in LXD` setup support.
|`['dcos-grid']['cloud-config']['target_dir']`|String||`'/home/core'`|
|`['dcos-grid']['cloud-config']['target_owner']`|String||`'core:core'`|
|`['dcos-grid']['cloud-config']['hostname']`|String||`'<fqdn>'`|
+|`['dcos-grid']['cloud-config']['timezone']`|String||`'Etc/GMT'`|
|`['dcos-grid']['cloud-config']['ssh_authorized_keys']`|Array||`['<your_ssh_pub_key>',]`|
|`['dcos-grid']['universe-server']['docker-compose']['app_dir']`|String||`'/opt/docker-compose/app/dcos-universe'`|
|`['dcos-grid']['universe-server']['docker-compose']['config']`|Hash|`docker-compose.yml` configurations.|See `attributes/default.rb`|
'target_dir' => '/home/core',
'target_owner' => 'core:core',
'hostname' => '<fqdn>',
+ 'timezone' => 'Etc/GMT',
'ssh_authorized_keys' => [
'<your_ssh_pub_key>',
],
license 'Apache 2.0'
description 'Installs/Configures DC/OS Cluster Node.'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '0.5.1'
+version '0.5.2'
source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
issues_url 'https://osdn.jp/projects/metasearch/ticket'
fi
echo 'Launching Docker container for the bootstrap service ...'
- execute "$sudo docker run -d -p ${port}:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx"
+ execute "cd $install_dir"
+ execute "$sudo docker run -d --restart always -p ${port}:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx"
}
sudo='sudo'
fi
echo 'Launching Docker container for the bootstrap service ...'
- execute "$sudo docker run -d -p ${port}:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx"
+ execute "cd $install_dir"
+ execute "$sudo docker run -d --restart always -p ${port}:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx"
}
upgrade() {
#cloud-config
hostname: <%= cloud_config['hostname'] %>
+timezone: <%= cloud_config['timezone'] %>
# include one or more SSH public keys for the core user
ssh_authorized_keys:
--- /dev/null
+cluster_name = 'dcos1'
+
+name "#{cluster_name}-node"
+description "#{cluster_name} cluster node"
+
+run_list(
+ 'role[docker4dcos]',
+ "role[#{cluster_name}]",
+ 'recipe[dcos-grid::node]',
+)
+
+#env_run_lists
+
+default_attributes(
+)
+
+override_attributes(
+ 'dcos-grid' => {
+ 'node' => {
+ 'auto_setup' => false,
+ },
+ },
+)