express42 / postgresql_lwrp

Express 42 postgresql cookbook
MIT License
55 stars 16 forks source link

Recipe Compile Error #25

Closed olexandrd closed 8 years ago

olexandrd commented 8 years ago

I have compile error with zabbix_lwrp recipes (postgresql_lwrp is in dependencies). I try to use it with aws opsworks (chef 11.10).


================================================================================
Recipe Compile Error in /var/lib/aws/opsworks/cache.stage2/cookbooks/postgresql_lwrp/resources/cloud_backup.rb
================================================================================

ArgumentError
-------------
wrong number of arguments (1 for 0)

Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/postgresql_lwrp/resources/cloud_backup.rb:29:in `class_from_file'

Relevant File Content:
----------------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/postgresql_lwrp/resources/cloud_backup.rb:

22:  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23:  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24:  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25:  # SOFTWARE.
26:  #
27:  
28:  provides :postgresql_cloud_backup
29>> resource_name :postgresql_cloud_backup
30:  
31:  actions :schedule
32:  default_action :schedule
33:  
34:  attribute :name, kind_of: String, required: true
35:  attribute :in_version, kind_of: String, required: true
36:  attribute :in_cluster, kind_of: String, required: true
37:  attribute :protocol, kind_of: String,
38:                       required: true,
serjs commented 8 years ago

Hi!

postgresql_lwrp cookbook needs at least >= 11.14.2 version of chef-client, also mentioined in Requirements

So, you need to upgrade chef-client, to fix mentioned compilation error

Let us know if the problem still exists, after upgrading chef-client to minimal required version

ikurochkin commented 8 years ago

As far as I know AWS OpsWorks currently supports Chef versions 12 http://docs.aws.amazon.com/opsworks/latest/userguide/chef-12-linux.html

olexandrd commented 8 years ago

Thanks for answers!