Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/discourse/manifests/init.pp

Issue 9431166: Make sure to populate post_action_types table (Closed)
Patch Set: Created Feb. 27, 2013, 5:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/discourse/manifests/postactiontype.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/discourse/manifests/init.pp
===================================================================
--- a/modules/discourse/manifests/init.pp
+++ b/modules/discourse/manifests/init.pp
@@ -137,16 +137,74 @@ class discourse inherits private::discou
}
discourse::sitesetting {'use_ssl':
ensure => present,
type => 5,
value => 't'
}
+ Discourse::Postactiontype <| |> {
+ require => Exec['/usr/local/bin/init-discourse']
+ }
+
+ discourse::postactiontype {'bookmark':
+ ensure => present,
+ id => 1,
+ position => 1
+ }
+
+ discourse::postactiontype {'like':
+ ensure => present,
+ id => 2,
+ position => 2,
+ icon => 'heart'
+ }
+
+ discourse::postactiontype {'off_topic':
+ ensure => present,
+ id => 3,
+ position => 3,
+ is_flag => true
+ }
+
+ discourse::postactiontype {'inappropriate':
+ ensure => present,
+ id => 4,
+ position => 4,
+ is_flag => true
+ }
+
+ discourse::postactiontype {'vote':
+ ensure => present,
+ position => 0,
+ id => 5
+ }
+
+ discourse::postactiontype {'custom_flag':
+ ensure => present,
+ id => 6,
+ position => 7,
+ is_flag => true
+ }
+
+ discourse::postactiontype {'illegal':
+ ensure => present,
+ id => 7,
+ position => 5,
+ is_flag => true
+ }
+
+ discourse::postactiontype {'spam':
+ ensure => present,
+ id => 8,
+ position => 6,
+ is_flag => true
+ }
+
discourse::admin {$admins:
ensure => present,
require => Exec['/usr/local/bin/init-discourse']
}
Discourse::Customservice <| |> {
user => 'discourse',
workdir => '/opt/discourse',
« no previous file with comments | « no previous file | modules/discourse/manifests/postactiontype.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld