Trying the very first few commands from the tutorial of puppet and getting the error:
learning@hello: $ curl -k https://learning.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to learning.puppetlabs.vm:8140; Connection refused
[~]
learning@hello: $
After searching some time over the net the solution is restart pe-puppetserver
root@learning: # service pe-puppetserver restart
Redirecting to /bin/systemctl restart pe-puppetserver.service
[~]
root@learning: #
Then run the command again and issue is all sorted now.
learning@hello: $ curl -k https://learning.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25790 100 25790 0 0 149k 0 --:--:-- --:--:-- --:--:-- 149k
Loaded plugins: fastestmirror, ovl
Repository 'local' is missing name in configuration, using id
Cleaning repos: pe_repo
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
.
.
.
.
.
.
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/puppet',
}
Notice: /File[/usr/local/bin/pe-man]/ensure: created
file { '/usr/local/bin/pe-man':
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/pe-man',
}
Notice: /File[/usr/local/bin/hiera]/ensure: created
file { '/usr/local/bin/hiera':
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/hiera',
}
[~]
learning@hello: $
learning@hello: $ curl -k https://learning.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to learning.puppetlabs.vm:8140; Connection refused
[~]
learning@hello: $
After searching some time over the net the solution is restart pe-puppetserver
root@learning: # service pe-puppetserver restart
Redirecting to /bin/systemctl restart pe-puppetserver.service
[~]
root@learning: #
Then run the command again and issue is all sorted now.
learning@hello: $ curl -k https://learning.puppetlabs.vm:8140/packages/current/install.bash | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25790 100 25790 0 0 149k 0 --:--:-- --:--:-- --:--:-- 149k
Loaded plugins: fastestmirror, ovl
Repository 'local' is missing name in configuration, using id
Cleaning repos: pe_repo
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
.
.
.
.
.
.
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/puppet',
}
Notice: /File[/usr/local/bin/pe-man]/ensure: created
file { '/usr/local/bin/pe-man':
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/pe-man',
}
Notice: /File[/usr/local/bin/hiera]/ensure: created
file { '/usr/local/bin/hiera':
ensure => 'link',
target => '/opt/puppetlabs/puppet/bin/hiera',
}
[~]
learning@hello: $
1 comment:
Many thanks!
Post a Comment