When creating a Linux profile with a custom configuration there is a checkbox called Add Forge Module Dependency With it I can add puppet dependencies, but it seems I can only add one? I have tr...
See more...
When creating a Linux profile with a custom configuration there is a checkbox called Add Forge Module Dependency With it I can add puppet dependencies, but it seems I can only add one? I have tried adding two but end up with errors. Is there a special syntax for adding several dependencies? My use-case: Add an apt repository using Puppet Apt-module - https://forge.puppet.com/modules/puppetlabs/apt With the obvious choice using dependency puppetlabs-apt, this gives me error Error: Evaluation Error: Unknown function: 'merge'. (file: /opt/vmware/ws1-hub/data/Puppet/modules/apt/manifests/init.pp, line: 186, column: 14) on node XXXXXX. merge-function seems to be a function in puppetlabs-stdlib but with that added as a dependency I get another error: Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::apt for XXXXXX. (file: /opt/vmware/ws1-hub/data/Puppet/manifest/c0ebe689-6b87-4e4d-9e61-b1f1744d992e.pp, line: 1, column: 1) on node XXXXXX. So I would like to add both stdlib and apt as a forge module dependency. Any idea how? My puppet manifest is below: include apt
# Install apt key
$chromefp = 'EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796'
apt::key { 'google-chrome':
ensure => 'present',
id => "${chromefp}",
source => 'https://dl.google.com/linux/linux_signing_key.pub',
} ~> apt::source { 'google-chrome':
comment => 'Google Chrome repo',
location => 'http://dl.google.com/linux/chrome/deb/',
release => 'stable',
repos => 'main',
} ~> exec { 'apt-update':
command => '/usr/bin/apt-get update'
} ~> package { 'google-chrome-stable':
ensure => 'latest',
}