Skip to content
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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

nathenharvey
Copy link

Use the latest ChefDK for compliance

Fix issues with Docker

Lots of clean-up

@nathenharvey
Copy link
Author

Ohai version 8.11.1 fixed Ohai so that it will detect paravirt amazon instances without hint files.

be42b07 removes those hints.

Nathen Harvey added 18 commits November 30, 2016 07:14
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>
@nathenharvey nathenharvey changed the title Compliance uses ChefDK 0.9.16 Compliance uses ChefDK 1.0.3 Nov 30, 2016

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
Copy link

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'
Copy link

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
Copy link

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
Copy link

@burtlo burtlo Nov 30, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants