Skip to content

Instantly share code, notes, and snippets.

@oneandoneis2
Created March 31, 2014 11:25
Show Gist options
  • Save oneandoneis2/9890232 to your computer and use it in GitHub Desktop.
Save oneandoneis2/9890232 to your computer and use it in GitHub Desktop.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Ssl_certs::Install[adcourier.com] is already declared in file /etc/puppet/manifests/classes/bb_application.pp:7; cannot redeclare at /etc/puppet/manifests/classes/bb_application.pp:7
1 class bb_application {
2
3 define install_nginx ( $virtual_hostname, $backend_port, $domain_name="adcourier.com", $perl _version="perl-5.16.3" ) {
4
5 include nginx
6 include ssl_certs
7 ssl_certs::install{$domain_name: }
8
9 file { "/etc/nginx/sites-enabled/${name}.conf":
10 ensure => "present",
11 mode => "0644",
12 owner => "root",
13 group => "root",
14 content => template('nginx/nginx_virtual_host.conf'),
15 notify => Service['nginx'],
16 }
17 }
18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment