#6674 CFEngine Provisioner Broken on Debian (http > https)
This commit is contained in:
parent
ac3b24d93e
commit
37d7239803
|
@ -8,6 +8,8 @@ module VagrantPlugins
|
||||||
comm.sudo("mkdir -p #{File.dirname(config.deb_repo_file)} && /bin/echo #{config.deb_repo_line} > #{config.deb_repo_file}")
|
comm.sudo("mkdir -p #{File.dirname(config.deb_repo_file)} && /bin/echo #{config.deb_repo_line} > #{config.deb_repo_file}")
|
||||||
comm.sudo("GPGFILE=`tempfile`; wget -O $GPGFILE #{config.repo_gpg_key_url} && apt-key add $GPGFILE; rm -f $GPGFILE")
|
comm.sudo("GPGFILE=`tempfile`; wget -O $GPGFILE #{config.repo_gpg_key_url} && apt-key add $GPGFILE; rm -f $GPGFILE")
|
||||||
|
|
||||||
|
comm.sudo("apt-get install -y --force-yes apt-transport-https");
|
||||||
|
|
||||||
comm.sudo("apt-get update")
|
comm.sudo("apt-get update")
|
||||||
comm.sudo("apt-get install -y #{config.package_name}")
|
comm.sudo("apt-get install -y #{config.package_name}")
|
||||||
end
|
end
|
||||||
|
|
|
@ -51,7 +51,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
if @deb_repo_line == UNSET_VALUE
|
if @deb_repo_line == UNSET_VALUE
|
||||||
@deb_repo_line = "deb http://cfengine.com/pub/apt/packages stable main"
|
@deb_repo_line = "deb https://cfengine.com/pub/apt/packages stable main"
|
||||||
end
|
end
|
||||||
|
|
||||||
@extra_agent_args = nil if @extra_agent_args == UNSET_VALUE
|
@extra_agent_args = nil if @extra_agent_args == UNSET_VALUE
|
||||||
|
@ -71,7 +71,7 @@ module VagrantPlugins
|
||||||
@policy_server_address = nil if @policy_server_address == UNSET_VALUE
|
@policy_server_address = nil if @policy_server_address == UNSET_VALUE
|
||||||
|
|
||||||
if @repo_gpg_key_url == UNSET_VALUE
|
if @repo_gpg_key_url == UNSET_VALUE
|
||||||
@repo_gpg_key_url = "http://cfengine.com/pub/gpg.key"
|
@repo_gpg_key_url = "https://cfengine.com/pub/gpg.key"
|
||||||
end
|
end
|
||||||
|
|
||||||
@upload_path = "/tmp/vagrant-cfengine-file" if @upload_path == UNSET_VALUE
|
@upload_path = "/tmp/vagrant-cfengine-file" if @upload_path == UNSET_VALUE
|
||||||
|
@ -81,7 +81,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
if @yum_repo_url == UNSET_VALUE
|
if @yum_repo_url == UNSET_VALUE
|
||||||
@yum_repo_url = "http://cfengine.com/pub/yum/$basearch"
|
@yum_repo_url = "https://cfengine.com/pub/yum/$basearch"
|
||||||
end
|
end
|
||||||
|
|
||||||
if @package_name == UNSET_VALUE
|
if @package_name == UNSET_VALUE
|
||||||
|
|
Loading…
Reference in New Issue