Commit 471fd8aa authored by Victor Penso's avatar Victor Penso
Browse files

alow the optional deployment of file in /etc/cvmfs/keys

parent 48fe311b
......@@ -2,4 +2,4 @@ default[:cvmfs][:client][:default_local][:default_domain] = node.domain
default[:cvmfs][:client][:default_local][:cache_base] = '/var/cache/cvmfs'
default[:cvmfs][:client][:default_local][:quota_limit] = 20000
default[:cvmfs][:client][:default_local][:max_ttl] = 30
default[:cvmfs][:client][:config_d] = Hash.new
default[:cvmfs][:client][:config_d] = Mash.new
default[:cvmfs][:version] = String.new
default[:cvmfs][:keys] = Mash.new
......@@ -4,6 +4,5 @@ license "Apache 2.0"
description "Deploy CernVM-FS clients and repository servers."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
depends "apache2"
depends "sys"
supports "debian", ">= 7.0"
......@@ -23,6 +23,14 @@ else
package 'cvmfs'
end
# Deploy files to the /etc/cvmfs/keys directory
node.cvmfs[:keys].each do |name,key|
file "/etc/cvmfs/keys/#{name}" do
mode "0644"
content key.gsub(/^ */,'')
end
end
if node.cvmfs.server.repos.empty?
include_recipe 'cernvm-fs::client'
else
......
......@@ -15,6 +15,19 @@ default_attributes(
"public_key" => "/etc/cvmfs/keys/betta.devops.test.pub"
}
}
},
"keys" => {
"alpha.devops.test.pub" => "
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv5vG3NPejVo0KQdgJifN
/pbWI0q0ujRw2i5UUStNHDzYWXqe6n61JZtnMnbmhD4K6qqHMg8a2G78Hlr5/mQt
FqnNxbGjNwYivPSXxd8ha1ys6j8CuAvfRHwOvSkR7cUWt4sP38IIRfoXwunTRpGr
dCJ+ILR7ctnFcu7IyBNBE5x040dbm4pTtWe0HinN8oUsSFNLSPfeEOKzdKVi0O66
lI65KC8hlRfPz+a3ISzSljKjB0SlG28OyhlIW2oEqZfFCQj3kUnmiUy7TxXDp2iG
m3ur+moaWKL6TIDaNF8vlx0AdW4yRqX22GSToFQ2AfKiUifij8Vk3qEQE6YvQKrm
JQIDAQAB
-----END PUBLIC KEY-----
"
}
}
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment