Deploy the `mc` config file.

This commit is contained in:
Kazuhiro MUSASHI 2021-06-19 20:25:51 +09:00
parent d69cb345af
commit 5b4bcc8b81
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,5 @@
md5:17a3f86858b25ec6fcd64b7f47f924ae:salt:190-136-109-24-26-133-85-248:aes-256-cfb:zWTyQvUX+eDR+m5h1Y3Hwk7/m6ESw4pMA+1bRrhyQ61SdsJj4SGTCP5i2nl9
A91t/q0sQTlWxEgcGDHx40U7Qz55BEq4cAgA3DUSzQzqpNAsWqmH3XLc2dF8
jF7V2PWtGpfdxTy8XW3GWiJE5fDB5CQDFRr3eFZmYOKLLN6ILUH9PsvfJRDL
O3ihrtWz3Mg9Rv68N2AwO5uNV3Tb6ontTcu2AIrswP7ZLLbmM97xT7sGl4mb
3n54yFU72NjTP5aOW0LcjSYdIcRDMR4TgxJk5NUb55rdfHbLP2SCbWKJxg==

14
cookbooks/digdag/mc.rb Normal file
View File

@ -0,0 +1,14 @@
directory '/root/.mc' do
owner 'root'
group 'root'
mode '700'
end
# Deploy the configuration file:
encrypted_remote_file '/root/.mc/config.json' do
owner 'root'
group 'root'
mode '600'
source 'files/root/.mc/config.json'
password ENV['ITAMAE_PASSWORD']
end