File tree 2 files changed +5
-13
lines changed 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 4
4
#
5
5
# Author:: LLC Express 42 (info@express42.com)
6
6
#
7
- # Copyright (C) 2012-2013 LLC Express 42
7
+ # Copyright (C) 2012-2014 LLC Express 42
8
8
#
9
9
# Permission is hereby granted, free of charge, to any person obtaining a copy of
10
10
# this software and associated documentation files (the "Software"), to deal in
@@ -105,11 +105,7 @@ def whyrun_supported?
105
105
group 'postgres'
106
106
mode 0644
107
107
variables configuration : configuration , cluster_name : cluster_name
108
- if new_resource . cookbook
109
- cookbook new_resource . cookbook
110
- else
111
- cookbook 'postgresql'
112
- end
108
+ cookbook new_resource . cookbook
113
109
notifies :create , 'ruby_block[restart_service]' , :delayed
114
110
end
115
111
@@ -119,11 +115,7 @@ def whyrun_supported?
119
115
group 'postgres'
120
116
mode 0644
121
117
variables configuration : hba_configuration
122
- if new_resource . cookbook
123
- cookbook new_resource . cookbook
124
- else
125
- cookbook 'postgresql'
126
- end
118
+ cookbook new_resource . cookbook
127
119
notifies :create , 'ruby_block[restart_service]' , :delayed
128
120
end
129
121
Original file line number Diff line number Diff line change 4
4
#
5
5
# Author:: LLC Express 42 (info@express42.com)
6
6
#
7
- # Copyright (C) 2012-2013 LLC Express 42
7
+ # Copyright (C) 2012-2014 LLC Express 42
8
8
#
9
9
# Permission is hereby granted, free of charge, to any person obtaining a copy of
10
10
# this software and associated documentation files (the "Software"), to deal in
29
29
default_action :create
30
30
31
31
attribute :cluster_name , kind_of : String , name_attribute : true
32
- attribute :cookbook , kind_of : String
32
+ attribute :cookbook , kind_of : String , default : "postgresql"
33
33
attribute :cluster_create_options , kind_of : Hash , default : { }
34
34
attribute :configuration , kind_of : Hash , default : { }
35
35
attribute :hba_configuration , kind_of : Array , default : [ ]
You can’t perform that action at this time.
0 commit comments