-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compliance uses ChefDK 1.0.3 #20
base: main
Are you sure you want to change the base?
Conversation
Ohai version 8.11.1 fixed Ohai so that it will detect paravirt amazon instances without hint files. be42b07 removes those hints. |
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
* Use a generic CentOS 7 Image from the marketplace * Update the ssh user * Bump the version number Signed-off-by: Nathen Harvey <nharvey@chef.io>
Chef will get installed without specifying this Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
* docker * compat_resource Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Signed-off-by: Nathen Harvey <nharvey@chef.io>
Templates no longer need to be in the `templates/default` directory. Move them to the `templates` directory. Signed-off-by: Nathen Harvey <nharvey@chef.io>
This allows us to scan the node from Chef Compliance Signed-off-by: Nathen Harvey <nharvey@chef.io>
supports { manage_home: true } on the user resource is deprecated and will be removed in Chef 13, set manage_home: true instead Signed-off-by: Nathen Harvey <nharvey@chef.io>
* ChefDK 1.0.3 is installed * AMI version bumped to 1.3.1 * AMI name updated * AMI ID updated in the build and show scripts Signed-off-by: Nathen Harvey <nharvey@chef.io>
134167a
to
c0214bf
Compare
|
||
remote_file "epel-release-6-8.noarch.rpm" do | ||
source "http://ftp.osuosl.org/pub/fedora-epel/6/i386/epel-release-6-8.noarch.rpm" | ||
docker_service 'default' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice. The docker cookbook makes that easy.
@@ -15,8 +15,6 @@ | |||
|
|||
chef_ingredient 'chefdk' do | |||
action :install | |||
channel :stable | |||
version '0.17.17' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your intention is always to grab the latest?
|
||
AMI_ID=ami-614d7476 | ||
|
||
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,ImageId,PublicIpAddress,State.Name,Tags[?Key==`Name`].Value | [0]]' --output text | grep running | grep $AMI_ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be opposed to me moving these into rake tasks after merging?
recursive true | ||
end | ||
|
||
file "/etc/chef/ohai/hints/ec2.json" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed the hints for all the workstations. It's hard for me to see if that was replaced with another resource, if this is unneeded now, or a personal setting.
Use the latest ChefDK for compliance
Fix issues with Docker
Lots of clean-up