2 # Module for managing keystone config.
7 # (optional) Desired ensure state of packages.
8 # accepts latest or specific versions.
11 # [*client_package_ensure*]
12 # (optional) Desired ensure state of the client package.
13 # accepts latest or specific versions.
14 # Defaults to present.
17 # (optional) Port that keystone binds to.
21 # (optional) DEPRECATED The port for compute servie.
25 # (optional) Port that can be used for admin tasks.
29 # Admin token that can be used to authenticate as a keystone
33 # (optional) Rather keystone should log at verbose level.
37 # (optional) Rather keystone should log at debug level.
41 # (optional) Use syslog for logging.
45 # (optional) Syslog facility to receive log lines.
46 # Defaults to 'LOG_USER'.
49 # (optional) Type of catalog that keystone uses to store endpoints,services.
50 # Defaults to sql. (Also accepts template)
53 # (optional) Catalog driver used by Keystone to store endpoints and services.
54 # Setting this value will override and ignore catalog_type.
57 # [*catalog_template_file*]
58 # (optional) Path to the catalog used if catalog_type equals 'template'.
59 # Defaults to '/etc/keystone/default_catalog.templates'
62 # (optional) Format keystone uses for tokens.
63 # Defaults to 'keystone.token.providers.uuid.Provider'
64 # Supports PKI, PKIZ, Fernet, and UUID.
67 # (optional) Driver to use for managing tokens.
68 # Defaults to 'keystone.token.persistence.backends.sql.Token'
70 # [*token_expiration*]
71 # (optional) Amount of time a token should remain valid (seconds).
72 # Defaults to 3600 (1 hour).
75 # (optional) Driver for token revocation.
76 # Defaults to 'keystone.contrib.revoke.backends.sql.Revoke'
79 # (optional) Directory created when token_provider is pki.
80 # Defaults to /var/cache/keystone.
82 # [*memcache_servers*]
83 # (optional) List of memcache servers in format of server:port.
84 # Used with token_driver 'keystone.token.backends.memcache.Token'.
85 # Defaults to false. Example: ['localhost:11211']
88 # (optional) Dogpile.cache backend module. It is recommended that Memcache with pooling
89 # (keystone.cache.memcache_pool) or Redis (dogpile.cache.redis) be used in production.
90 # This has no effects unless 'memcache_servers' is set.
91 # Defaults to 'keystone.common.cache.noop'
93 # [*cache_backend_argument*]
94 # (optional) List of arguments in format of argname:value supplied to the backend module.
95 # Specify this option once per argument to be passed to the dogpile.cache backend.
96 # This has no effects unless 'memcache_servers' is set.
99 # [*debug_cache_backend*]
100 # (optional) Extra debugging from the cache backend (cache keys, get/set/delete calls).
101 # This has no effects unless 'memcache_servers' is set.
105 # (optional) Toggle for token system caching. This has no effects unless 'memcache_servers' is set.
109 # (Optional) If Puppet should manage service startup / shutdown.
113 # (optional) If the keystone services should be enabled.
116 # [*database_connection*]
117 # (optional) Url used to connect to database.
118 # Defaults to sqlite:////var/lib/keystone/keystone.db
120 # [*database_idle_timeout*]
121 # (optional) Timeout when db connections should be reaped.
124 # [*enable_pki_setup*]
125 # (optional) Enable call to pki_setup to generate the cert for signing pki tokens and
126 # revocation lists if it doesn't already exist. This generates a cert and key stored in file
127 # locations based on the signing_certfile and signing_keyfile paramters below. If you are
128 # providing your own signing cert, make this false.
131 # [*signing_certfile*]
132 # (optional) Location of the cert file for signing pki tokens and revocation lists.
133 # Note that if this file already exists (i.e. you are providing your own signing cert),
134 # the file will not be overwritten, even if enable_pki_setup is set to true.
135 # Default: /etc/keystone/ssl/certs/signing_cert.pem
137 # [*signing_keyfile*]
138 # (optional) Location of the key file for signing pki tokens and revocation lists.
139 # Note that if this file already exists (i.e. you are providing your own signing cert), the file
140 # will not be overwritten, even if enable_pki_setup is set to true.
141 # Default: /etc/keystone/ssl/private/signing_key.pem
143 # [*signing_ca_certs*]
144 # (optional) Use this CA certs file along with signing_certfile/signing_keyfile for
145 # signing pki tokens and revocation lists.
146 # Default: /etc/keystone/ssl/certs/ca.pem
149 # (optional) Use this CA key file along with signing_certfile/signing_keyfile for signing
150 # pki tokens and revocation lists.
151 # Default: /etc/keystone/ssl/private/cakey.pem
153 # [*signing_cert_subject*]
154 # (optional) Certificate subject (auto generated certificate) for token signing.
155 # Defaults to '/C=US/ST=Unset/L=Unset/O=Unset/CN=www.example.com'
157 # [*signing_key_size*]
158 # (optional) Key size (in bits) for token signing cert (auto generated certificate)
162 # (optional) Location of rabbitmq installation.
163 # Defaults to localhost.
166 # (optional) Port for rabbitmq instance.
170 # (optional) Location of rabbitmq installation.
173 # [*rabbit_password*]
174 # (optional) Password used to connect to rabbitmq.
178 # (optional) User used to connect to rabbitmq.
181 # [*rabbit_virtual_host*]
182 # (optional) The RabbitMQ virtual host.
186 # (optional) Connect over SSL for RabbitMQ
189 # [*kombu_ssl_ca_certs*]
190 # (optional) SSL certification authority file (valid only if SSL enabled).
193 # [*kombu_ssl_certfile*]
194 # (optional) SSL cert file (valid only if SSL enabled).
197 # [*kombu_ssl_keyfile*]
198 # (optional) SSL key file (valid only if SSL enabled).
201 # [*kombu_ssl_version*]
202 # (optional) SSL version to use (valid only if SSL enabled).
203 # Valid values are TLSv1, SSLv23 and SSLv3. SSLv2 may be
204 # available on some distributions.
205 # Defaults to 'TLSv1'
207 # [*notification_driver*]
208 # RPC driver. Not enabled by default
210 # [*notification_topics*]
211 # (optional) AMQP topics to publish to when using the RPC notification driver.
214 # [*notification_format*]
215 # Format for the notifications. Valid values are 'basic' and 'cadf'.
218 # [*control_exchange*]
219 # (optional) AMQP exchange to connect to if using RabbitMQ or Qpid
222 # [*public_bind_host*]
223 # (optional) The IP address of the public network interface to listen on
224 # Default to '0.0.0.0'.
226 # [*admin_bind_host*]
227 # (optional) The IP address of the public network interface to listen on
228 # Default to '0.0.0.0'.
231 # (optional) Directory where logs should be stored
232 # If set to boolean false, it will not log to any directory
233 # Defaults to '/var/log/keystone'
236 # (optional) Where to log
239 # [*public_endpoint*]
240 # (optional) The base public endpoint URL for keystone that are
241 # advertised to clients (NOTE: this does NOT affect how
242 # keystone listens for connections) (string value)
243 # If set to false, no public_endpoint will be defined in keystone.conf.
244 # Sample value: 'http://localhost:5000/'
248 # (optional) The base admin endpoint URL for keystone that are
249 # advertised to clients (NOTE: this does NOT affect how keystone listens
250 # for connections) (string value)
251 # If set to false, no admin_endpoint will be defined in keystone.conf.
252 # Sample value: 'http://localhost:35357/'
256 # (optional) Toggle for SSL support on the keystone eventlet servers.
261 # (optional) Path of the certfile for SSL. (string value)
262 # Defaults to '/etc/keystone/ssl/certs/keystone.pem'
265 # (optional) Path of the keyfile for SSL. (string value)
266 # Defaults to '/etc/keystone/ssl/private/keystonekey.pem'
269 # (optional) Path of the ca cert file for SSL. (string value)
270 # Defaults to '/etc/keystone/ssl/certs/ca.pem'
273 # (optional) Path of the CA key file for SSL (string value)
274 # Defaults to '/etc/keystone/ssl/private/cakey.pem'
276 # [*ssl_cert_subject*]
277 # (optional) SSL Certificate Subject (auto generated certificate)
279 # Defaults to '/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost'
282 # (optional) Deprecated. Does nothing.
284 # [*validate_service*]
285 # (optional) Whether to validate keystone connections after
286 # the service is started.
289 # [*validate_insecure*]
290 # (optional) Whether to validate keystone connections
291 # using the --insecure option with keystone client.
294 # [*validate_cacert*]
295 # (optional) Whether to validate keystone connections
296 # using the specified argument with the --os-cacert option
297 # with keystone client.
300 # [*validate_auth_url*]
301 # (optional) The url to validate keystone against
304 # [*service_provider*]
305 # (optional) Provider, that can be used for keystone service.
306 # Default value defined in keystone::params for given operation system.
307 # If you use Pacemaker or another Cluster Resource Manager, you can make
308 # custom service provider for changing start/stop/status behavior of service,
312 # (optional) Name of the service that will be providing the
313 # server functionality of keystone. For example, the default
314 # is just 'keystone', which means keystone will be run as a
315 # standalone eventlet service, and will able to be managed
316 # separately by the operating system's service manager. For
317 # example, you will be able to use
318 # service openstack-keystone restart
319 # to restart the service.
320 # If the value is 'httpd', this means keystone will be a web
321 # service, and you must use another class to configure that
322 # web service. For example, after calling class {'keystone'...}
323 # use class { 'keystone::wsgi::apache'...} to make keystone be
324 # a web app using apache mod_wsgi.
325 # Defaults to '$::keystone::params::service_name'
326 # NOTE: validate_service only applies if the default value is used.
329 # (optional) Name of the paste configuration file that defines the
330 # available pipelines. (string value)
331 # Defaults to '/usr/share/keystone/keystone-dist-paste.ini' on RedHat and
332 # undef on other platforms.
335 # (optional) maximum allowable Keystone token size
339 # (optional) The number of worker processes to serve the admin WSGI application.
340 # Defaults to max($::processorcount, 2)
343 # (optional) The number of worker processes to serve the public WSGI application.
344 # Defaults to max($::processorcount, 2)
347 # (Optional) Run db sync on the node.
350 # [*enable_fernet_setup*]
351 # (Optional) Setup keystone for fernet tokens. This is typically only
352 # run on a single node, then the keys are replicated to the other nodes
353 # in a cluster. You would typically also pair this with a fernet token
357 # [*fernet_key_repository*]
358 # (Optional) Location for the fernet key repository. This value must
359 # be set if enable_fernet_setup is set to true.
360 # Defaults to '/etc/keystone/fernet-keys'
362 # [*fernet_max_active_keys*]
363 # (Optional) Number of maximum active Fernet keys. Integer > 0.
371 # class { 'keystone':
372 # log_verbose => 'True',
373 # admin_token => 'my_special_token',
378 # class { 'keystone':
380 # service_name => 'httpd',
383 # class { 'keystone::wsgi::apache':
389 # Dan Bode dan@puppetlabs.com
393 # Copyright 2012 Puppetlabs Inc, unless otherwise noted.
397 $package_ensure = 'present',
398 $client_package_ensure = 'present',
399 $public_bind_host = '0.0.0.0',
400 $admin_bind_host = '0.0.0.0',
401 $public_port = '5000',
402 $admin_port = '35357',
405 $log_dir = '/var/log/keystone',
408 $log_facility = 'LOG_USER',
409 $catalog_type = 'sql',
410 $catalog_driver = false,
411 $catalog_template_file = '/etc/keystone/default_catalog.templates',
412 $token_provider = 'keystone.token.providers.uuid.Provider',
413 $token_driver = 'keystone.token.persistence.backends.sql.Token',
414 $token_expiration = 3600,
415 $revoke_driver = 'keystone.contrib.revoke.backends.sql.Revoke',
416 $public_endpoint = false,
417 $admin_endpoint = false,
419 $ssl_certfile = '/etc/keystone/ssl/certs/keystone.pem',
420 $ssl_keyfile = '/etc/keystone/ssl/private/keystonekey.pem',
421 $ssl_ca_certs = '/etc/keystone/ssl/certs/ca.pem',
422 $ssl_ca_key = '/etc/keystone/ssl/private/cakey.pem',
423 $ssl_cert_subject = '/C=US/ST=Unset/L=Unset/O=Unset/CN=localhost',
424 $cache_dir = '/var/cache/keystone',
425 $memcache_servers = false,
426 $manage_service = true,
427 $cache_backend = 'keystone.common.cache.noop',
428 $cache_backend_argument = undef,
429 $debug_cache_backend = false,
430 $token_caching = true,
432 $database_connection = 'sqlite:////var/lib/keystone/keystone.db',
433 $database_idle_timeout = '200',
434 $enable_pki_setup = true,
435 $signing_certfile = '/etc/keystone/ssl/certs/signing_cert.pem',
436 $signing_keyfile = '/etc/keystone/ssl/private/signing_key.pem',
437 $signing_ca_certs = '/etc/keystone/ssl/certs/ca.pem',
438 $signing_ca_key = '/etc/keystone/ssl/private/cakey.pem',
439 $signing_cert_subject = '/C=US/ST=Unset/L=Unset/O=Unset/CN=www.example.com',
440 $signing_key_size = 2048,
441 $rabbit_host = 'localhost',
442 $rabbit_hosts = false,
443 $rabbit_password = 'guest',
444 $rabbit_port = '5672',
445 $rabbit_userid = 'guest',
446 $rabbit_virtual_host = '/',
447 $rabbit_use_ssl = false,
448 $kombu_ssl_ca_certs = undef,
449 $kombu_ssl_certfile = undef,
450 $kombu_ssl_keyfile = undef,
451 $kombu_ssl_version = 'TLSv1',
452 $notification_driver = false,
453 $notification_topics = false,
454 $notification_format = undef,
455 $control_exchange = false,
456 $validate_service = false,
457 $validate_insecure = false,
458 $validate_auth_url = false,
459 $validate_cacert = undef,
460 $paste_config = $::keystone::params::paste_config,
461 $service_provider = $::keystone::params::service_provider,
462 $service_name = $::keystone::params::service_name,
463 $max_token_size = undef,
464 $admin_workers = max($::processorcount, 2),
465 $public_workers = max($::processorcount, 2),
467 $enable_fernet_setup = false,
468 $fernet_key_repository = '/etc/keystone/fernet-keys',
469 $fernet_max_active_keys = undef,
470 # DEPRECATED PARAMETERS
471 $mysql_module = undef,
472 $compute_port = undef,
473 ) inherits keystone::params {
475 if ! $catalog_driver {
476 validate_re($catalog_type, 'template|sql')
480 warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
483 if ($admin_endpoint and 'v2.0' in $admin_endpoint) {
484 warning('Version string /v2.0/ should not be included in keystone::admin_endpoint')
487 if ($public_endpoint and 'v2.0' in $public_endpoint) {
488 warning('Version string /v2.0/ should not be included in keystone::public_endpoint')
492 if !$kombu_ssl_ca_certs {
493 fail('The kombu_ssl_ca_certs parameter is required when rabbit_use_ssl is set to true')
495 if !$kombu_ssl_certfile {
496 fail('The kombu_ssl_certfile parameter is required when rabbit_use_ssl is set to true')
498 if !$kombu_ssl_keyfile {
499 fail('The kombu_ssl_keyfile parameter is required when rabbit_use_ssl is set to true')
503 File['/etc/keystone/keystone.conf'] -> Keystone_config<||> ~> Service[$service_name]
504 Keystone_config<||> ~> Exec<| title == 'keystone-manage db_sync'|>
505 Keystone_config<||> ~> Exec<| title == 'keystone-manage pki_setup'|>
506 Keystone_config<||> ~> Exec<| title == 'keystone-manage fernet_setup'|>
508 include ::keystone::params
510 package { 'keystone':
511 ensure => $package_ensure,
512 name => $::keystone::params::package_name,
515 if $client_package_ensure == 'present' {
516 include '::openstacklib::openstackclient'
518 class { '::openstacklib::openstackclient':
519 package_ensure => $client_package_ensure,
526 require => Package['keystone'],
533 require => Package['keystone'],
536 file { ['/etc/keystone', '/var/log/keystone', '/var/lib/keystone']:
541 require => Package['keystone'],
542 notify => Service[$service_name],
545 file { '/etc/keystone/keystone.conf':
550 require => Package['keystone'],
551 notify => Service[$service_name],
555 'DEFAULT/admin_token': value => $admin_token, secret => true;
556 'DEFAULT/public_bind_host': value => $public_bind_host;
557 'DEFAULT/admin_bind_host': value => $admin_bind_host;
558 'DEFAULT/public_port': value => $public_port;
559 'DEFAULT/admin_port': value => $admin_port;
560 'DEFAULT/verbose': value => $verbose;
561 'DEFAULT/debug': value => $debug;
565 warning('The compute_port parameter is deprecated and will be removed in L')
567 'DEFAULT/compute_port': value => $compute_port;
571 'DEFAULT/compute_port': ensure => absent;
575 # Endpoint configuration
576 if $public_endpoint {
578 'DEFAULT/public_endpoint': value => $public_endpoint;
582 'DEFAULT/public_endpoint': ensure => absent;
587 'DEFAULT/admin_endpoint': value => $admin_endpoint;
591 'DEFAULT/admin_endpoint': ensure => absent;
594 # requirements for memcache token driver
595 if ($token_driver =~ /memcache/ ) {
596 package { 'python-memcache':
598 name => $::keystone::params::python_memcache_package_name,
602 # token driver config
604 'token/driver': value => $token_driver;
605 'token/expiration': value => $token_expiration;
610 'revoke/driver': value => $revoke_driver;
614 'revoke/driver': ensure => absent;
621 'ssl/enable': value => true;
622 'ssl/certfile': value => $ssl_certfile;
623 'ssl/keyfile': value => $ssl_keyfile;
624 'ssl/ca_certs': value => $ssl_ca_certs;
625 'ssl/ca_key': value => $ssl_ca_key;
626 'ssl/cert_subject': value => $ssl_cert_subject;
630 'ssl/enable': value => false;
634 if($database_connection =~ /mysql:\/\/\S+:\S+@\S+\/\S+/) {
635 require 'mysql::bindings'
636 require 'mysql::bindings::python'
637 } elsif($database_connection =~ /postgresql:\/\/\S+:\S+@\S+\/\S+/) {
639 } elsif($database_connection =~ /sqlite:\/\//) {
642 fail("Invalid db connection ${database_connection}")
645 # memcache connection config
646 if $memcache_servers {
647 validate_array($memcache_servers)
648 Service<| title == 'memcached' |> -> Service['keystone']
650 'cache/enabled': value => true;
651 'cache/backend': value => $cache_backend;
652 'cache/debug_cache_backend': value => $debug_cache_backend;
653 'token/caching': value => $token_caching;
654 'memcache/servers': value => join($memcache_servers, ',');
656 if $cache_backend_argument {
657 validate_array($cache_backend_argument)
659 'cache/backend_argument': value => join($cache_backend_argument, ',');
663 'cache/backend_argument': ensure => absent;
668 'cache/enabled': ensure => absent;
669 'cache/backend': ensure => absent;
670 'cache/backend_argument': ensure => absent;
671 'cache/debug_cache_backend': ensure => absent;
672 'token/caching': ensure => absent;
673 'memcache/servers': ensure => absent;
677 # db connection config
679 'database/connection': value => $database_connection, secret => true;
680 'database/idle_timeout': value => $database_idle_timeout;
683 # configure based on the catalog backend
685 $catalog_driver_real = $catalog_driver
687 elsif ($catalog_type == 'template') {
688 $catalog_driver_real = 'keystone.catalog.backends.templated.Catalog'
690 elsif ($catalog_type == 'sql') {
691 $catalog_driver_real = 'keystone.catalog.backends.sql.Catalog'
695 'catalog/driver': value => $catalog_driver_real;
696 'catalog/template_file': value => $catalog_template_file;
699 # Set the signing key/cert configuration values.
701 'signing/certfile': value => $signing_certfile;
702 'signing/keyfile': value => $signing_keyfile;
703 'signing/ca_certs': value => $signing_ca_certs;
704 'signing/ca_key': value => $signing_ca_key;
705 'signing/cert_subject': value => $signing_cert_subject;
706 'signing/key_size': value => $signing_key_size;
709 # Create cache directory used for signing.
714 # Only do pki_setup if we were asked to do so. This is needed
715 # regardless of the token provider since token revocation lists
717 if $enable_pki_setup {
718 exec { 'keystone-manage pki_setup':
722 creates => $signing_keyfile,
723 notify => Service[$service_name],
724 subscribe => Package['keystone'],
725 require => User['keystone'],
729 keystone_config { 'token/provider': value => $token_provider }
732 keystone_config { 'DEFAULT/max_token_size': value => $max_token_size }
734 keystone_config { 'DEFAULT/max_token_size': ensure => absent }
737 if $notification_driver {
738 keystone_config { 'DEFAULT/notification_driver': value => $notification_driver }
740 keystone_config { 'DEFAULT/notification_driver': ensure => absent }
742 if $notification_topics {
743 keystone_config { 'DEFAULT/notification_topics': value => $notification_topics }
745 keystone_config { 'DEFAULT/notification_topics': ensure => absent }
747 if $notification_format {
748 keystone_config { 'DEFAULT/notification_format': value => $notification_format }
750 keystone_config { 'DEFAULT/notification_format': ensure => absent }
752 if $control_exchange {
753 keystone_config { 'DEFAULT/control_exchange': value => $control_exchange }
755 keystone_config { 'DEFAULT/control_exchange': ensure => absent }
759 'DEFAULT/rabbit_password': value => $rabbit_password, secret => true;
760 'DEFAULT/rabbit_userid': value => $rabbit_userid;
761 'DEFAULT/rabbit_virtual_host': value => $rabbit_virtual_host;
765 keystone_config { 'DEFAULT/rabbit_hosts': value => join($rabbit_hosts, ',') }
766 keystone_config { 'DEFAULT/rabbit_ha_queues': value => true }
768 keystone_config { 'DEFAULT/rabbit_host': value => $rabbit_host }
769 keystone_config { 'DEFAULT/rabbit_port': value => $rabbit_port }
770 keystone_config { 'DEFAULT/rabbit_hosts': value => "${rabbit_host}:${rabbit_port}" }
771 keystone_config { 'DEFAULT/rabbit_ha_queues': value => false }
774 keystone_config { 'DEFAULT/rabbit_use_ssl': value => $rabbit_use_ssl }
777 'DEFAULT/kombu_ssl_ca_certs': value => $kombu_ssl_ca_certs;
778 'DEFAULT/kombu_ssl_certfile': value => $kombu_ssl_certfile;
779 'DEFAULT/kombu_ssl_keyfile': value => $kombu_ssl_keyfile;
780 'DEFAULT/kombu_ssl_version': value => $kombu_ssl_version;
784 'DEFAULT/kombu_ssl_ca_certs': ensure => absent;
785 'DEFAULT/kombu_ssl_certfile': ensure => absent;
786 'DEFAULT/kombu_ssl_keyfile': ensure => absent;
787 'DEFAULT/kombu_ssl_version': ensure => absent;
792 'DEFAULT/admin_workers': value => $admin_workers;
793 'DEFAULT/public_workers': value => $public_workers;
798 $service_ensure = 'running'
800 $service_ensure = 'stopped'
803 warning('Execution of db_sync does not depend on $enabled anymore. Please use sync_db instead.')
806 if $service_name == $::keystone::params::service_name {
807 if $validate_service {
808 if $validate_auth_url {
809 $v_auth_url = $validate_auth_url
811 $v_auth_url = $admin_endpoint
814 class { '::keystone::service':
815 ensure => $service_ensure,
816 service_name => $service_name,
820 provider => $service_provider,
822 admin_endpoint => $v_auth_url,
823 admin_token => $admin_token,
824 insecure => $validate_insecure,
825 cacert => $validate_cacert,
828 class { '::keystone::service':
829 ensure => $service_ensure,
830 service_name => $service_name,
834 provider => $service_provider,
838 } elsif $service_name == 'httpd' {
839 class { '::keystone::service':
841 service_name => $::keystone::params::service_name,
843 provider => $service_provider,
847 fail('Invalid service_name. Either keystone/openstack-keystone for running as a standalone service, or httpd for being run by a httpd server')
851 include ::keystone::db::sync
852 Class['::keystone::db::sync'] ~> Service[$service_name]
855 # Syslog configuration
858 'DEFAULT/use_syslog': value => true;
859 'DEFAULT/syslog_log_facility': value => $log_facility;
863 'DEFAULT/use_syslog': value => false;
869 'DEFAULT/log_file': value => $log_file;
870 'DEFAULT/log_dir': value => $log_dir;
875 'DEFAULT/log_dir': value => $log_dir;
876 'DEFAULT/log_file': ensure => absent;
880 'DEFAULT/log_dir': ensure => absent;
881 'DEFAULT/log_file': ensure => absent;
888 'paste_deploy/config_file': value => $paste_config;
892 'paste_deploy/config_file': ensure => absent;
896 # Fernet tokens support
897 if $enable_fernet_setup {
898 validate_string($fernet_key_repository)
900 exec { 'keystone-manage fernet_setup':
904 creates => "${fernet_key_repository}/0",
905 notify => Service[$service_name],
906 subscribe => [Package['keystone'], Keystone_config['fernet_tokens/key_repository']],
910 if $fernet_key_repository {
912 'fernet_tokens/key_repository': value => $fernet_key_repository;
916 'fernet_tokens/key_repository': ensure => absent;
920 if $fernet_max_active_keys {
922 'fernet_tokens/max_active_keys': value => $fernet_max_active_keys;
926 'fernet_tokens/max_active_keys': ensure => absent;