Created
September 27, 2017 16:54
-
-
Save benjamink/e551b2fe8bee9316560787226078cfe3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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