This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:6 | |
MAINTAINER 164c <morotomi.hiroshi@gmail.com> | |
RUN yum clean all && yum update -y && yum install -y \ | |
openssh \ | |
openssh-clients \ | |
openssh-server \ | |
passwd \ | |
sudo \ | |
git \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
Include: | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'db/**/*' | |
- 'config/**/*' | |
- 'script/**/*' | |
- 'bin/**/*' | |
- 'vendor/bundle/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby: | |
enabled: true | |
config_file: .rubocop.yml | |
coffee_script: | |
enabled: true | |
java_script: | |
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE_DIR=/path/to/chef_nodes_dir | |
for filepath in $BASE_DIR/*.json | |
do | |
filename=`basename $filepath` | |
hostname=`echo $filename | sed -e "s/\.json//"` | |
written_host=`grep "\"name\"" $filepath | awk '{print $2}' | sed -e 's/[,"]//g'` | |
if [ $written_host != $hostname ] ; then | |
sed -i -e "s/$written_host/$hostname/" $filepath |