Skip to content

Instantly share code, notes, and snippets.

@przygode
Created October 29, 2012 00:54
Show Gist options
  • Save przygode/3970769 to your computer and use it in GitHub Desktop.
Save przygode/3970769 to your computer and use it in GitHub Desktop.
metadata data for ChefClient
{
"ChefClient": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"DependsOn": "BucketPolicy",
"Metadata": {
"AWS::CloudFormation::Init": {
"config": {
"packages": {
"rubygems": {
"chef": [
"10.14.2"
],
"ohai": [
"0.6.4"
]
},
"apt": {
"build-essential": [],
"curl": [],
"irb": [],
"libopenssl-ruby": [],
"libreadline-ruby1.8": [],
"libruby1.8": [],
"libxslt-dev": [],
"libxml2-dev": [],
"libxml2": [],
"rdoc": [],
"ri": [],
"ruby": [],
"ruby-dev": [],
"rubygems": [],
"s3cmd": [],
"ssl-cert": [],
"wget": []
}
},
"files": {
"/etc/chef/first-boot.json": {
"content": {
"run_list": {
"Ref": "ChefRunList"
},
"mode": "000644",
"owner": "root",
"group": "root"
}
},
"/home/ubuntu/.s3cfg": {
"content": {
"Fn::Join": [
"",
[
"[default]\n",
"access_key = ",
{
"Ref": "HostKeys"
},
"\n",
"secret_key = ",
{
"Fn::GetAtt": [
"HostKeys",
"SecretAccessKey"
]
},
"\n",
"use_https = True\n"
]
]
},
"mode": "000644",
"owner": "ubuntu",
"group": "ubuntu"
},
"/var/lib/gems/1.8/gems/ohai-0.6.4/lib/ohai/plugins/cfn.rb": {
"source": "https://s3.amazonaws.com/cloudformation-examples/cfn.rb",
"mode": "000644",
"owner": "root",
"group": "root"
}
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment