Added sensative to new ssh-pvt deployment
This commit is contained in:
parent
8cca9e32aa
commit
673a44a90c
1 changed files with 11 additions and 9 deletions
|
@ -233,24 +233,26 @@ end
|
||||||
### SSH key for IPA server communications
|
### SSH key for IPA server communications
|
||||||
#
|
#
|
||||||
directory "/root/.ssh" do
|
directory "/root/.ssh" do
|
||||||
owner "root"
|
owner "root"
|
||||||
group "root"
|
group "root"
|
||||||
mode "0700"
|
mode "0700"
|
||||||
action :create
|
action :create
|
||||||
end
|
end
|
||||||
|
|
||||||
file "/root/.ssh/id_rsa" do
|
file "/root/.ssh/id_rsa" do
|
||||||
content passwords["ssh-pvt"]
|
content passwords["ssh-pvt"]
|
||||||
owner "root"
|
owner "root"
|
||||||
group "root"
|
group "root"
|
||||||
mode "0600"
|
mode "0600"
|
||||||
|
sensitive true
|
||||||
end
|
end
|
||||||
|
|
||||||
file "/root/.ssh/id_rsa.pub" do
|
file "/root/.ssh/id_rsa.pub" do
|
||||||
content passwords["ssh-pub"]
|
content passwords["ssh-pub"]
|
||||||
owner "root"
|
owner "root"
|
||||||
group "root"
|
group "root"
|
||||||
mode "0600"
|
mode "0600"
|
||||||
|
sensitive true
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_block "add public key to authorized_keys" do
|
ruby_block "add public key to authorized_keys" do
|
||||||
|
|
Loading…
Reference in a new issue