Sha256: 66c61eef90895b2f21822d78651fd92da621a97efd9723bf046019f97a61dfb4

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

#
# Cookbook Name:: wombat
# Recipe:: authorized-keys
#
# Copyright (c) 2016 The Authors, All Rights Reserved.

append_if_no_line "Add certificate to authorized_keys" do
  path "/home/#{node['demo']['admin-user']}/.ssh/authorized_keys"
  line lazy { IO.read('/tmp/public.pub') }
  not_if { node['platform'] == 'windows' }
end

node.default['authorization']['sudo']['include_sudoers_d'] = true

sudo 'centos' do
  user 'centos'
  nopasswd true
  defaults ['!requiretty']
  only_if { node['platform'] == 'centos' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wombat-cli-0.6.1 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.6.0 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.5.0 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.4.3 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.4.2 generator_files/cookbooks/wombat/recipes/authorized-keys.rb