Created
December 4, 2016 12:20
-
-
Save aurerua/fe870bab02e344d39965a1e56e4b3f75 to your computer and use it in GitHub Desktop.
A Chef recipe to create a user and install a few packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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