mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 10:55:00 +01:00
switching fixtures to git checkout, and making examples more verbose
This commit is contained in:
parent
44a4665782
commit
9c317eba10
4 changed files with 22 additions and 11 deletions
|
@ -1,8 +1,8 @@
|
||||||
fixtures:
|
fixtures:
|
||||||
forge_modules:
|
repositories:
|
||||||
stdlib: puppetlabs/stdlib
|
apt: "https://github.com/puppetlabs/puppetlabs-apt.git"
|
||||||
apt: puppetlabs/apt
|
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
|
||||||
yum: puppet/yum
|
yum: "https://github.com/voxpupuli/puppet-yum.git"
|
||||||
yumrepo_core:
|
yumrepo_core:
|
||||||
repo: puppetlabs/yumrepo_core
|
repo: "https://github.com/puppetlabs/puppetlabs-yumrepo_core.git"
|
||||||
puppet_version: ">= 6.0.0"
|
puppet_version: ">= 6.0.0"
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
class { 'hashi_stack::repo': }
|
include hashi_stack::repo
|
||||||
-> package { 'packer': ensure => installed }
|
package { 'packer':
|
||||||
|
ensure => installed,
|
||||||
|
require => Class['Hashi_stack::Repo'],
|
||||||
|
}
|
||||||
|
|
|
@ -2,11 +2,15 @@
|
||||||
#
|
#
|
||||||
# @summary Set up the package repository for the HashiCorp Stack components
|
# @summary Set up the package repository for the HashiCorp Stack components
|
||||||
#
|
#
|
||||||
# @example
|
# @example Inclusion using defaults
|
||||||
# include hashi_stack::repo
|
# include hashi_stack::repo
|
||||||
#
|
#
|
||||||
# @example
|
# @example Include repo and install packer as package
|
||||||
# class { 'hashi_stack::repo': } -> package { 'packer': ensure => installed }
|
# include hashi_stack::repo
|
||||||
|
# package { 'packer':
|
||||||
|
# ensure => installed,
|
||||||
|
# require => Class['Hashi_stack::Repo'],
|
||||||
|
# }
|
||||||
#
|
#
|
||||||
# @param priority A numeric priority for the repo, passed to the package management system
|
# @param priority A numeric priority for the repo, passed to the package management system
|
||||||
# @param proxy The URL of a HTTP proxy to use for package downloads (YUM only)
|
# @param proxy The URL of a HTTP proxy to use for package downloads (YUM only)
|
||||||
|
|
|
@ -6,7 +6,11 @@ describe 'hashi_stack::repo class' do
|
||||||
# Using puppet_apply as a helper
|
# Using puppet_apply as a helper
|
||||||
it 'should work with no errors based on the example' do
|
it 'should work with no errors based on the example' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
class { 'hashi_stack::repo': } -> package { 'packer': ensure => installed }
|
include hashi_stack::repo
|
||||||
|
package { 'packer':
|
||||||
|
ensure => installed,
|
||||||
|
require => Class['Hashi_stack::Repo'],
|
||||||
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
# Run it twice and test for idempotency
|
# Run it twice and test for idempotency
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue