Skip to content

Commit 25973c5

Browse files
committed
Merge 1.4.1 release into master
2 parents 2c350c8 + 55f6599 commit 25973c5

12 files changed

+104
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ cfncluster-cookbook CHANGELOG
33

44
This file is used to list changes made in each version of the cfncluster cookbook.
55

6+
1.4.1
7+
-----
8+
9+
Major new features/updates:
10+
11+
- Updated to latest cfncluster-node 1.4.3
12+
613
1.4.0
714
-----
815

attributes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
default['cfncluster']['scripts_dir'] = "#{node['cfncluster']['base_dir']}/scripts"
2020
default['cfncluster']['license_dir'] = "#{node['cfncluster']['base_dir']}/licenses"
2121
# Python packages
22-
default['cfncluster']['cfncluster-node-version'] = '1.4.2'
22+
default['cfncluster']['cfncluster-node-version'] = '1.4.3'
2323
default['cfncluster']['cfncluster-supervisor-version'] = '3.3.1'
2424
# URLs to software packages used during install receipes
2525
# Gridengine software

centos-upgrade-first-stage.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ sudo /bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/co
8080
# install) and turning off ifnames, because a bunch of the scripts expect
8181
# to find eth0. Should handle the eth naming better, but that's todo.
8282
echo "Updating Grub command line"
83-
sudo /bin/sed -r -i -e 's/GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"/' /etc/default/grub
84-
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
83+
if test $is_centos6 -eq 1; then
84+
sudo grubby --update-kernel=ALL --args="net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"
85+
else
86+
sudo /bin/sed -r -i -e 's/GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"/' /etc/default/grub
87+
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
88+
fi
8589

8690
echo "Update Complete. Rebooting."
8791
# sleep for 30 seconds to make sure packer doesn't try to run the next

centos-upgrade-second-stage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ fi
4040
echo "Cleaning out old kernels"
4141
sudo package-cleanup -y --oldkernels --count=1
4242

43+
if test $is_centos6 -eq 1; then
44+
sudo yum install -y cloud-init cloud-utils dracut-modules-growroot cloud-utils-growpart
45+
rpm -qa kernel-lt | sed 's/^kernel-lt-//' | xargs -I {} sudo dracut -f /boot/initramfs-{}.img {}
46+
fi
47+
4348
echo "Cleaning up filesystem"
4449
sudo rm -rf /tmp/* /var/tmp/* /var/log/* /etc/ssh/ssh_host*
4550
sudo rm -rf /root/* /root/.ssh /root/.history /root/.bash_history

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description 'Installs/Configures cfncluster'
77
issues_url 'https://github.com/awslabs/cfncluster-cookbook/issues'
88
source_url 'https://github.com/awslabs/cfncluster-cookbook'
9-
version '1.4.0'
9+
version '1.4.1'
1010

1111
depends 'build-essential', '~> 8.0.2'
1212
depends 'poise-python', '~> 1.6.0'

packer_alinux.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,25 @@
103103
},
104104
{
105105
"type" : "chef-solo",
106+
"remote_cookbook_paths" : [
107+
"/etc/chef/cookbooks"
108+
],
109+
"skip_install" : "true",
110+
"execute_command" : "sudo chef-client -z --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
111+
"run_list" : [
112+
"cfncluster::_update_packages"
113+
]
114+
},
115+
{
116+
"type" : "shell",
117+
"expect_disconnect" : "true",
118+
"inline" : [
119+
"sudo reboot"
120+
]
121+
},
122+
{
123+
"type" : "chef-solo",
124+
"pause_before": "2m",
106125
"json" : {
107126
"cfncluster" : {
108127
"nvidia" : {

packer_centos6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{
1818
"type" : "amazon-ebs",
1919
"region" : "us-east-1",
20-
"source_ami" : "ami-9ff841e5",
20+
"source_ami" : "ami-44f1aa3e",
2121
"ami_regions" : "{{user `build_for`}}",
2222
"ami_groups" : "{{user `ami_perms`}}",
2323
"instance_type" : "{{user `instance_type`}}",

packer_centos7.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{
1818
"type" : "amazon-ebs",
1919
"region" : "us-east-1",
20-
"source_ami" : "ami-01098c7b",
20+
"source_ami" : "ami-06fea57c",
2121
"ami_regions" : "{{user `build_for`}}",
2222
"ami_groups" : "{{user `ami_perms`}}",
2323
"instance_type" : "{{user `instance_type`}}",
@@ -103,6 +103,25 @@
103103
},
104104
{
105105
"type" : "chef-solo",
106+
"remote_cookbook_paths" : [
107+
"/etc/chef/cookbooks"
108+
],
109+
"skip_install" : "true",
110+
"execute_command" : "sudo chef-client -z --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
111+
"run_list" : [
112+
"cfncluster::_update_packages"
113+
]
114+
},
115+
{
116+
"type" : "shell",
117+
"expect_disconnect" : "true",
118+
"inline" : [
119+
"sudo reboot"
120+
]
121+
},
122+
{
123+
"type" : "chef-solo",
124+
"pause_before": "2m",
106125
"json" : {
107126
"cfncluster" : {
108127
"nvidia" : {

packer_ubuntu1404.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,25 @@
111111
},
112112
{
113113
"type" : "chef-solo",
114+
"remote_cookbook_paths" : [
115+
"/etc/chef/cookbooks"
116+
],
117+
"skip_install" : "true",
118+
"execute_command" : "sudo chef-client -z --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
119+
"run_list" : [
120+
"cfncluster::_update_packages"
121+
]
122+
},
123+
{
124+
"type" : "shell",
125+
"expect_disconnect" : "true",
126+
"inline" : [
127+
"sudo reboot"
128+
]
129+
},
130+
{
131+
"type" : "chef-solo",
132+
"pause_before": "2m",
114133
"json" : {
115134
"cfncluster" : {
116135
"nvidia" : {

packer_ubuntu1604.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,25 @@
111111
},
112112
{
113113
"type" : "chef-solo",
114+
"remote_cookbook_paths" : [
115+
"/etc/chef/cookbooks"
116+
],
117+
"skip_install" : "true",
118+
"execute_command" : "sudo chef-client -z --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
119+
"run_list" : [
120+
"cfncluster::_update_packages"
121+
]
122+
},
123+
{
124+
"type" : "shell",
125+
"expect_disconnect" : "true",
126+
"inline" : [
127+
"sudo reboot"
128+
]
129+
},
130+
{
131+
"type" : "chef-solo",
132+
"pause_before": "2m",
114133
"json" : {
115134
"cfncluster" : {
116135
"nvidia" : {

0 commit comments

Comments
 (0)