Skip to content
Extraits de code Groupes Projets
Valider 27b4c193 rédigé par ilya's avatar ilya
Parcourir les fichiers

Getting the deployment changes from master

parent 8e6dfe71
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
package :git, :provides => :scm do package :git, :provides => :scm do
description 'Git Distributed Version Control' description 'Git Distributed Version Control'
apt %w( git-core ) do apt %w( git-core )
pre :install, "mkdir -p /root/.ssh/"
end
requires :pubkey requires :pubkey
requires :privkey
requires :known_hosts
end end
package :privkey do package :privkey do
description 'checkout from github with it' description 'checkout from github with it'
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa", '/root/.ssh/id_rsa', :render => false transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa", '/root/.ssh/id_rsa', :render => false do
pre :install, "rm -rf /root/.ssh/ && mkdir -p /root/.ssh/"
post :install, "chmod go-rwx /root/.ssh/id_rsa"
end
end end
package :pubkey do package :pubkey do
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa.pub", '/root/.ssh/id_rsa.pub', :render => false transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa.pub", '/root/.ssh/id_rsa.pub', :render => false
requires :privkey
requires :known_hosts
end end
package :known_hosts do package :known_hosts do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter