work with tasks
This commit is contained in:
parent
736f5adcae
commit
f409e7a23f
@ -8,7 +8,7 @@ $public_ip = $network_metadata['vips']['public']['ipaddr']
|
||||
$admin_ip = $network_metadata['vips']['management']['ipaddr']
|
||||
$internal_ip = $admin_ip
|
||||
|
||||
class {'::puppet-manila::keystone::auth':
|
||||
class {'::manila::keystone::auth':
|
||||
password => $pass,
|
||||
public_url => "http://${public_ip}:8786/v1/%(tenant_id)s",
|
||||
public_url_v2 => "http://${public_ip}:8786/v2/%(tenant_id)s",
|
||||
|
@ -1,3 +0,0 @@
|
||||
notify {'MODULAR: manila/override_hiera'}
|
||||
|
||||
override_hiera('/etc/hiera/plugins/fuel-plugin-manila.yaml')
|
@ -5,8 +5,5 @@ $file = '/etc/hiera/plugins/fuel-plugin-manila.yaml'
|
||||
$new_password = generate("/bin/bash", "-c", "/bin/date +%s | sha256sum | base64 | head -c 32 ; echo -n")
|
||||
|
||||
if ! $manila {
|
||||
notify {"DBG! manila is empty. Do something ${new_npassword}": }
|
||||
populate_hiera($file, 'user_password', $new_password)
|
||||
} else {
|
||||
notify {"DBG! manila non empty. is ${manila}": }
|
||||
}
|
||||
|
@ -1,62 +1,39 @@
|
||||
# These tasks will be merged into deployment graph. Here you
|
||||
# can specify new tasks for any roles, even built-in ones.
|
||||
|
||||
- id: fuel-plugin-manila_role
|
||||
type: group
|
||||
role: [fuel-plugin-manila_role]
|
||||
parameters:
|
||||
strategy:
|
||||
type: parallel
|
||||
|
||||
- id: fuel-plugin-manila-deployment-puppet
|
||||
- id: manila-start
|
||||
type: puppet
|
||||
role: [fuel-plugin-manila_role]
|
||||
|
||||
# If you do not want to use task-based deployment that is introduced as experimental
|
||||
# in fuel v8.0 comment code section below this comment, uncomment two lines below it
|
||||
# and do the same for tasks below.
|
||||
|
||||
role: [primary-controller, controller]
|
||||
version: 2.0.0
|
||||
cross-depends:
|
||||
- name: deploy_start
|
||||
cross-depended-by:
|
||||
- name: deploy_end
|
||||
# requires: [deploy_start] # version 1.0.0
|
||||
# required_for: [deploy_end]
|
||||
|
||||
parameters:
|
||||
puppet_manifest: "puppet/manifests/notify.pp"
|
||||
puppet_modules: "."
|
||||
timeout: 3600
|
||||
|
||||
#- id: fuel-plugin-manila-post-deployment-sh
|
||||
# type: shell
|
||||
# role: [fuel-plugin-manila_role]
|
||||
# version: 2.0.0
|
||||
# cross-depends:
|
||||
# - name: post_deployment_start
|
||||
# cross-depended-by:
|
||||
# - name: post_deployment_end
|
||||
# # requires: [post_deployment_start]
|
||||
# # required_for: [post_deployment_end]
|
||||
# parameters:
|
||||
# cmd: echo post_deployment_task_executed > /tmp/post_deployment
|
||||
# retries: 3
|
||||
# interval: 20
|
||||
# timeout: 180
|
||||
- id: manila-hiera
|
||||
type: puppet
|
||||
role: [primary-controller, controller]
|
||||
version: 2.0.0
|
||||
cross-depends:
|
||||
- name: manila-start
|
||||
cross-depended-by:
|
||||
- name: deploy_end
|
||||
parameters:
|
||||
puppet_manifest: "puppet/manifests/populate_hiera.pp"
|
||||
puppet_modules: "."
|
||||
timeout: 3600
|
||||
|
||||
#- id: fuel-plugin-manila-pre-deployment-sh
|
||||
# type: shell
|
||||
# role: [fuel-plugin-manila_role]
|
||||
# version: 2.0.0
|
||||
# cross-depends:
|
||||
# - name: pre_deployment_start
|
||||
# cross-depended-by:
|
||||
# - name: pre_deployment_end
|
||||
# # requires: [pre_deployment_start]
|
||||
# # required_for: [pre_deployment_end]
|
||||
# parameters:
|
||||
# cmd: echo pre_deployment_task_executed > /tmp/pre_deployment
|
||||
# retries: 3
|
||||
# interval: 20
|
||||
# timeout: 180
|
||||
- id: manila-keystone
|
||||
type: puppet
|
||||
role: [primary-controller, controller]
|
||||
version: 2.0.0
|
||||
cross-depends:
|
||||
- name: manila-hiera
|
||||
cross-depended-by:
|
||||
- name: deploy_end
|
||||
parameters:
|
||||
puppet_manifest: "puppet/manifests/populate_hiera.pp"
|
||||
puppet_modules: "."
|
||||
timeout: 3600
|
||||
|
||||
|
@ -3,7 +3,7 @@ name: fuel-plugin-manila
|
||||
# Human-readable name for your plugin
|
||||
title: Title for fuel-plugin-manila plugin
|
||||
# Plugin version
|
||||
version: '1.0.0'
|
||||
version: '1.0.1'
|
||||
# Description
|
||||
description: Please describe your plugin here
|
||||
# Required fuel version
|
||||
|
Loading…
Reference in New Issue
Block a user