Skip to content

Instantly share code, notes, and snippets.

@benjamink
Created September 27, 2017 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjamink/e551b2fe8bee9316560787226078cfe3 to your computer and use it in GitHub Desktop.
Save benjamink/e551b2fe8bee9316560787226078cfe3 to your computer and use it in GitHub Desktop.
Puppet Definition:
==================
define mymodule::deploy_key {
$ssh_host = 'myhost.example.com'
$sshconfig_file = '/home/jdoe/.ssh/config'
Ssh_config {
ensure => present,
host => $ssh_host,
target => $sshconfig_file,
}
ssh_config { "Hostname ${name}":
...
}
}
puppet-rspec output:
====================
failed: rspec: ./spec/defines/deploy_key_spec.rb:13: error during compilation: Evaluation Error: Resource type not found: Ssh_config at line 3:5 on node mylaptop.foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment