如何用Puppet部署应用程序(使用.tar.gz)?
我是Puppet的初学者,我想知道我是否正确地使用Puppet部署应用程序。 应用程序位于tar.gz文件中,其中包含具有版本号的文件。 所以,我这样做来部署(我去服务器上,并重新启动客户端拿起新的压缩包): nodes.pp node 'server1.domain.com' inherits basenode { apps { apps: version => 56, apps_name => "apps_tarball.tgz", } init.pp (modules) exec {"apps_wget": command => "/usr/bin/wget http://web_server/${version}-${apps_name} -O /tmp/${container_zip_name}", unless => "test -f /tmp/${version}-${apps_name}", require => [ Package["wget"] ], } exec {"apps_unzip": cwd => "/usr/local/apps/path", command => "/usr/bin/unzip /tmp/${version}-${apps_name}", unless => "test -f /usr/local/apps/path/apps-version-${version}", require […]