]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Merge pull request #199 from scarvalhojr/sensitive
authorWalter Huf <hufman@gmail.com>
Mon, 10 Aug 2015 17:16:32 +0000 (10:16 -0700)
committerWalter Huf <hufman@gmail.com>
Mon, 10 Aug 2015 17:16:32 +0000 (10:16 -0700)
Flag sensitive execute and file resources

1  2 
recipes/mon.rb

diff --cc recipes/mon.rb
index 9ca5e0da50cc7595ea2f473bfc40fd3d9173f7ba,fb910299689e651ddec9c1a096ce775623d3ff19..4da92e08ef7c5a01a6d3d3324c6da7af790c3b63
@@@ -53,13 -54,9 +54,14 @@@ execute 'generate mon-secret as keyring
    creates keyring
    not_if { mon_secret }
    notifies :create, 'ruby_block[save mon_secret]', :immediately
+   sensitive true if Chef::Resource::Execute.method_defined? :sensitive
  end
  
 +execute 'add bootstrap-osd key to keyring' do
 +  command lazy { "ceph-authtool '#{keyring}' --name=client.bootstrap-osd --add-key='#{osd_secret}' --cap mon 'allow profile bootstrap-osd'  --cap osd 'allow profile bootstrap-osd'" }
 +  only_if { node['ceph']['encrypted_data_bags'] && osd_secret }
 +end
 +
  ruby_block 'save mon_secret' do
    block do
      fetch = Mixlib::ShellOut.new("ceph-authtool '#{keyring}' --print-key --name=mon.")