Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this tag so people can use this tag in composition layer. A use case it to set some orchestration to make sure MySQL Galera is ready before running any Exec with this tag. Change-Id: If6394558b373f85e61840f538a3e2e1105cfe98c Closes-Bug: #1755102
This commit is contained in:
parent
fbd8c08e5e
commit
1f694ff1a4
@ -41,5 +41,6 @@ class ironic::db::sync(
|
|||||||
],
|
],
|
||||||
notify => Anchor['ironic::dbsync::end'],
|
notify => Anchor['ironic::dbsync::end'],
|
||||||
require => File['/var/log/ironic/ironic-dbsync.log'],
|
require => File['/var/log/ironic/ironic-dbsync.log'],
|
||||||
|
tag => 'openstack-db',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,6 @@ class ironic::inspector::db::sync {
|
|||||||
Anchor['ironic-inspector::dbsync::begin']
|
Anchor['ironic-inspector::dbsync::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['ironic-inspector::dbsync::end'],
|
notify => Anchor['ironic-inspector::dbsync::end'],
|
||||||
|
tag => 'openstack-db',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add openstack-db tag to Exec that run db-sync.
|
@ -17,6 +17,7 @@ describe 'ironic::db::sync' do
|
|||||||
'Anchor[ironic::config::end]',
|
'Anchor[ironic::config::end]',
|
||||||
'Anchor[ironic::dbsync::begin]'],
|
'Anchor[ironic::dbsync::begin]'],
|
||||||
:notify => 'Anchor[ironic::dbsync::end]',
|
:notify => 'Anchor[ironic::dbsync::end]',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
|
|
||||||
is_expected.to contain_file('/var/log/ironic/ironic-dbsync.log').with(
|
is_expected.to contain_file('/var/log/ironic/ironic-dbsync.log').with(
|
||||||
@ -44,6 +45,7 @@ describe 'ironic::db::sync' do
|
|||||||
'Anchor[ironic::config::end]',
|
'Anchor[ironic::config::end]',
|
||||||
'Anchor[ironic::dbsync::begin]'],
|
'Anchor[ironic::dbsync::begin]'],
|
||||||
:notify => 'Anchor[ironic::dbsync::end]',
|
:notify => 'Anchor[ironic::dbsync::end]',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -10,7 +10,8 @@ describe 'ironic::inspector::db::sync' do
|
|||||||
:path => '/usr/bin',
|
:path => '/usr/bin',
|
||||||
:user => 'ironic-inspector',
|
:user => 'ironic-inspector',
|
||||||
:refreshonly => 'true',
|
:refreshonly => 'true',
|
||||||
:logoutput => 'on_failure'
|
:logoutput => 'on_failure',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user