summaryrefslogtreecommitdiff
path: root/baserock_storyboard/site.pp
blob: 323238774a17aeb99c811db18f041ddb8c5946ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
node default {
  group { 'ssl-cert':
    ensure => 'present'
  }

  # This directory doesn't seem to exist by default in Fedora
  file { '/etc/ssl/private':
    ensure => directory
    before => Class['storyboard::cert']
  }

  # TEMPORARY SSL private key
  openssl::certificate::x509 { 'storyboard_dummy':
    country => 'UK',
    organization => 'The Baserock Project',
    commonname => 'baserock.org',
    base_dir => '/tmp/',
    password => 'insecure',
    before => Class['storyboard::cert']
  }

  class { 'storyboard::cert':
    ssl_cert_file => '/tmp/storyboard_dummy.crt',
    ssl_key_file => '/tmp/storyboard_dummy.key',
    ssl_ca_file => '/etc/ssl/certs/ca-bundle.crt'
  }

  # need class storyboard::rabbitmq too

  class { 'storyboard::application':
    openid_url => 'https://openid.baserock.org/',

    mysql_host => '192.168.222.30',
    mysql_database => 'storyboard',
    mysql_user => 'storyboard',
    # FIXME: need to read this from a file in /var/lib
    mysql_user_password => 'storyboard_insecure',

    rabbitmq_host => 'localhost',
    rabbitmq_port => 5672,
    rabbitmq_vhost => '/',
    rabbitmq_user => 'storyboard',
    # FIXME: need to read this from a file in /var/lib
    rabbitmq_user_password => 'storyboard_insecure'
  }
}