Skip to content

Instantly share code, notes, and snippets.

@shunwen
Created November 10, 2013 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shunwen/7397157 to your computer and use it in GitHub Desktop.
Save shunwen/7397157 to your computer and use it in GitHub Desktop.
name 'base'
description 'Create users and sudoers, configure ssh, set timezone and swap'
run_list "recipe[apt]", "recipe[user::data_bag]", "recipe[base::bootstrap]",
"recipe[build-essential]", "recipe[git]"
default_attributes(
users: ['config'],
authorization: {
sudo: {
include_sudoers_d: true
}
},
sudoers: ['config'],
ssh: {
:allow_ssh_root_login => false,
:max_startups => "10:30:60",
:use_dns => false,
:client_alive_interval => 60,
:client_alive_count_max => 3,
:gateway_ports => false
},
tz: 'UTC',
swap: {
size: 1024 # MB
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment