Initial Chef repository
This commit is contained in:
10
cookbooks/packagecloud/resources/repo.rb
Normal file
10
cookbooks/packagecloud/resources/repo.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
actions :add
|
||||
default_action :add
|
||||
|
||||
attribute :repository, :kind_of => String, :name_attribute => true
|
||||
attribute :master_token, :kind_of => String
|
||||
attribute :type, :kind_of => String, :equal_to => ['deb', 'rpm', 'gem'], :default => node['packagecloud']['default_type']
|
||||
attribute :base_url, :kind_of => String, :default => "https://packagecloud.io"
|
||||
attribute :gpg_key_url, :kind_of => String, :default => node['packagecloud']['gpg_key_url']
|
||||
attribute :priority, :kind_of => [Fixnum, TrueClass, FalseClass], :default => false
|
||||
attribute :metadata_expire, :kind_of => String, :regex => [/^\d+[d|h|m]?$/], :default => nil
|
||||
Reference in New Issue
Block a user