Sha256: 2508ee774c7328e5f65d194e924b6a91be115f3985567452ee00aeae8bb0594b

Contents?: true

Size: 1.09 KB

Versions: 26

Compression:

Stored size: 1.09 KB

Contents

#
# Cookbook Name:: virtualbox
# Recipe:: user
#
# Copyright 2012, Ringo De Smet
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# For the user to be created successfully, a data bag item with the MD5 hashed password
# needs to be added.

include_recipe "apt"

p = package "libshadow-ruby1.8" do
  action :nothing
end

p.run_action(:install)

user 'virtualbox-user' do
  username node['virtualbox']['user']
  gid node['virtualbox']['group']
  password data_bag_item('passwords','virtualbox-user')['password']
  home "/home/#{node['virtualbox']['user']}"
  shell "/bin/bash"
  system true
  manage_home true
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
madscience-0.0.29 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.28 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.27 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.26 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.25 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.24 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.23 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.21 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.20 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.19 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.17 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.16 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.15 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.14 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.13 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.11 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.10 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.9 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.8 cookbooks/virtualbox/recipes/user.rb
madscience-0.0.7 cookbooks/virtualbox/recipes/user.rb