Sha256: ea376519c0e926ffe0993d6ea7b58e930b473b09b6d7612f868b570432db5769

Contents?: true

Size: 517 Bytes

Versions: 11

Compression:

Stored size: 517 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

11 entries across 11 versions & 1 rubygems

Version Path
wombat-cli-0.7.3 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.7.2 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.6.2 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.4.1 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.4.0 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.3.4 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.3.3 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.3.2 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.3.1 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.3.0 generator_files/cookbooks/wombat/recipes/authorized-keys.rb
wombat-cli-0.2.1 cookbooks/wombat/recipes/authorized-keys.rb