Skip to content

Instantly share code, notes, and snippets.

@aurerua
Created December 4, 2016 12:20
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 aurerua/fe870bab02e344d39965a1e56e4b3f75 to your computer and use it in GitHub Desktop.
Save aurerua/fe870bab02e344d39965a1e56e4b3f75 to your computer and use it in GitHub Desktop.
A Chef recipe to create a user and install a few packages
# update the apt cache
apt_update 'Update the apt cache daily' do
frequency 86_400
action :periodic
end
# Make sure some packages are present
package ['ruby-shadow', 'whois', 'vim', 'git', 'geogebra', 'vlc', 'browser-plugin-vlc', 'libavcodec-extra', 'chromium-browser', 'chromium-browser-l10n', 'chromium-codecs-ffmpeg']
# Make sure there is a user called Stephen
user 'stephen' do
manage_home true
comment 'The user named Stephen'
home '/home/stephen'
password 'passwordhash'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment