Browse Source

switch single.pp to site.pp

in example directory
tags/1.0.0
Dan Bode 6 years ago
parent
commit
879dfa3a8e
1 changed files with 7 additions and 45 deletions
  1. 7
    45
      examples/site.pp

examples/single.pp → examples/site.pp View File

@@ -3,39 +3,24 @@
3 3
 # to ensure that we use the latest precise packages
4 4
 Exec { logoutput => 'on_failure' }
5 5
 
6
-node glance {
7
-
8
-  class { 'role_glance_sqlite': }
9
-
10
-}
11
-
12
-node glance_keystone {
13
-  class { 'keystone::config::sqlite': }
14
-  class { 'keystone':
15
-    verbose  => true,
16
-    debug    => true,
17
-    catalog_type => 'sql',
18
-  }
19
-  class { 'keystone::roles::admin': }
20
-  class { 'role_glance_sqlite': }
21
-  class { 'glance::keystone::auth': }
22
-}
23
-
24 6
 node glance_keystone_mysql {
25 7
   class { 'mysql::server': }
26 8
   class { 'keystone':
27 9
     verbose  => true,
28 10
     debug    => true,
29 11
     catalog_type => 'sql',
12
+    admin_token  => 'admin_token',
30 13
   }
31 14
   class { 'keystone::db::mysql':
32 15
     password => 'keystone',
33 16
   }
34
-  class { 'keystone::roles::admin': }
17
+  class { 'keystone::roles::admin':
18
+    email    => 'test@puppetlabs.com',
19
+    password => 'ChangeMe',
20
+  }
35 21
   class { 'role_glance_mysql': }
36
-  class { 'glance::keystone::auth': }
37
-  class { 'keystone::config::mysql':
38
-    password => 'keystone'
22
+  class { 'glance::keystone::auth':
23
+    password => 'glance_pass',
39 24
   }
40 25
 }
41 26
 
@@ -43,29 +28,6 @@ node default {
43 28
   fail("could not find a matching node entry for ${clientcert}")
44 29
 }
45 30
 
46
-class role_glance_sqlite {
47
-
48
-  class { 'glance::api':
49
-    verbose       => 'True',
50
-    debug         => 'True',
51
-    auth_type         => 'keystone',
52
-    keystone_tenant   => 'services',
53
-    keystone_user     => 'glance',
54
-    keystone_password => 'glance_password',
55
-  }
56
-  class { 'glance::backend::file': }
57
-
58
-  class { 'glance::registry':
59
-    verbose       => 'True',
60
-    debug         => 'True',
61
-    auth_type         => 'keystone',
62
-    keystone_tenant   => 'services',
63
-    keystone_user     => 'glance',
64
-    keystone_password => 'glance_password',
65
-  }
66
-
67
-}
68
-
69 31
 class role_glance_mysql {
70 32
 
71 33
   class { 'glance::api':

Loading…
Cancel
Save