Parcourir la source

metadata: added some generic attributes

Xabier de Zuazo il y a 11 ans
Parent
commit
986d7b497a
1 fichiers modifiés avec 128 ajouts et 0 suppressions
  1. 128 0
      metadata.rb

+ 128 - 0
metadata.rb

@@ -10,3 +10,131 @@ supports 'centos', '>= 6.0'
 supports 'debian', '>= 7.0'
 supports 'ubuntu', '>= 12.04'
 
+attribute 'dovecot/user',
+  :display_name => 'dovecot user',
+  :description => 'Dovector system user. Should no be changed',
+  :type => 'string',
+  :required => 'optional',
+  :default => 'dovecot'
+
+attribute 'dovecot/group',
+  :display_name => 'dovecot group',
+  :description => 'Dovector system group. Should no be changed',
+  :type => 'string',
+  :required => 'optional',
+  :default => 'dovecot'
+
+attribute 'dovecot/lib_path',
+  :display_name => 'dovecot library path',
+  :description => 'Dovector library path. Should no be changed',
+  :calculated => true,
+  :type => 'string',
+  :required => 'optional'
+
+attribute 'dovecot/conf_path',
+  :display_name => 'dovecot configuration path',
+  :description => 'Dovector configruration files path. Should no be changed',
+  :type => 'string',
+  :required => 'optional',
+  :default => '/etc/dovecot'
+
+attribute 'dovecot/conf_files_user',
+  :display_name => 'dovecot configuration files user',
+  :description => 'System user owner of configuration files',
+  :type => 'string',
+  :required => 'optional',
+  :default => 'root'
+
+attribute 'dovecot/conf_files_group',
+  :display_name => 'dovecot configuration files group',
+  :description => 'System group owner of configuration files',
+  :type => 'string',
+  :required => 'optional',
+  :default => 'node["dovecot"]["group"]'
+
+attribute 'dovecot/conf_files_mode',
+  :display_name => 'dovecot configuration files mode',
+  :description => 'Configuration files system file mode bits',
+  :type => 'string',
+  :required => 'optional',
+  :default => '00644'
+
+attribute 'dovecot/conf_files/core',
+  :display_name => 'dovecot core configuration files',
+  :description => 'Dovecot core configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'conf.d/10-auth.conf',
+    'conf.d/10-director.conf',
+    'conf.d/10-logging.conf',
+    'conf.d/10-mail.conf',
+    'conf.d/10-master.conf',
+    'conf.d/10-ssl.conf',
+    'conf.d/10-tcpwrapper.conf',
+    'conf.d/15-lda.conf',
+    'conf.d/15-mailboxes.conf',
+    'conf.d/90-acl.conf',
+    'conf.d/90-plugin.conf',
+    'conf.d/90-quota.conf',
+    'conf.d/auth-checkpassword.conf.ext',
+    'conf.d/auth-deny.conf.ext',
+    'conf.d/auth-master.conf.ext',
+    'conf.d/auth-passwdfile.conf.ext',
+    'conf.d/auth-sql.conf.ext',
+    'conf.d/auth-static.conf.ext',
+    'conf.d/auth-system.conf.ext',
+    'conf.d/auth-vpopmail.conf.ext',
+    'dovecot.conf',
+    'dovecot-db.conf.ext',
+    'dovecot-dict-sql.conf.ext',
+    'dovecot-sql.conf.ext',
+  ]
+
+attribute 'dovecot/conf_files/imap',
+  :display_name => 'dovecot imap configuration files',
+  :description => 'Dovecot IMAP configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'conf.d/20-imap.conf',
+  ]
+
+attribute 'dovecot/conf_files/pop3',
+  :display_name => 'dovecot pop3 configuration files',
+  :description => 'Dovecot POP3 configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'conf.d/20-pop3.conf',
+  ]
+
+attribute 'dovecot/conf_files/lmtp',
+  :display_name => 'dovecot lmtp configuration files',
+  :description => 'Dovecot LMTP configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'conf.d/20-lmtp.conf',
+  ]
+
+attribute 'dovecot/conf_files/sieve',
+  :display_name => 'dovecot sieve configuration files',
+  :description => 'Dovecot Sieve configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'conf.d/20-managesieve.conf',
+    'conf.d/90-sieve.conf',
+  ]
+
+attribute 'dovecot/conf_files/ldap',
+  :display_name => 'dovecot ldap configuration files',
+  :description => 'Dovecot LDAP configuration files list',
+  :type => 'array',
+  :required => 'optional',
+  :default => [
+    'dovecot-ldap.conf.ext',
+    'conf.d/auth-ldap.conf.ext',
+  ]
+