Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

how to use alias for host in serverspec

$
0
0
Hi, Below is the puppet manifests, host { $::fqdn : ensure => $ensure, host_aliases => $::hostname, ip => $::ipaddress, } I have written below serverspec for this describe host('server.puppetlabs.com') do # it { should exist } its(:ipaddress) { should eq '172.45.300.456' } it { should be_aliased_to 'server } end But getting below error On host `localhost' Failure/Error: it { should be_aliased_to 'server' } expected Host "server.puppetlabscom" to respond to `aliased_to?`

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>