Skip to content

Commit d114ca8

Browse files
committed
Revert "Configures Heat to use Trusts by default"
- This is managed by the puppet-heat module itself, (https://review.openstack.org/126940). This reverts commit 581a79e. Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com> Conflicts: packstack/plugins/heat_750.py packstack/puppet/templates/heat_trusts.pp packstack/puppet/templates/provision_demo.pp packstack/puppet/templates/provision_tempest.pp Change-Id: I61b06f6f2d7de9cbf32061437abef9c5d7860531
1 parent 1aa85fc commit d114ca8

8 files changed

Lines changed: 8 additions & 54 deletions

File tree

docs/packstack.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,6 @@ Heat Config Parameters
434434
**CONFIG_HEAT_KS_PW**
435435
The password to use for the Heat to authenticate with Keystone.
436436

437-
**CONFIG_HEAT_USING_TRUSTS**
438-
Set to 'y' if you would like Packstack to install heat with trusts as deferred auth method. If not, the stored password method will be used.
439-
440437
**CONFIG_HEAT_CLOUDWATCH_INSTALL**
441438
Set to 'y' if you would like Packstack to install Heat CloudWatch API.
442439

packstack/plugins/heat_750.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,6 @@ def initConfig(controller):
8686
"NEED_CONFIRM": False,
8787
"CONDITION": False},
8888

89-
{"CMD_OPTION": "os-heat-using-trusts",
90-
"USAGE": ("Set to 'y' if you would like Packstack to install Heat "
91-
"with trusts as deferred auth method. "
92-
"If not, the stored password method will be used."),
93-
"PROMPT": "Should Packstack configure Heat to use trusts",
94-
"OPTION_LIST": ["y", "n"],
95-
"VALIDATORS": [validators.validate_options],
96-
"DEFAULT_VALUE": "y",
97-
"MASK_INPUT": False,
98-
"LOOSE_VALIDATION": False,
99-
"CONF_NAME": "CONFIG_HEAT_USING_TRUSTS",
100-
"USE_DEFAULT": False,
101-
"NEED_CONFIRM": False,
102-
"CONDITION": False},
103-
10489
{"CMD_OPTION": "os-heat-cfn-install",
10590
"USAGE": ("Set to 'y' if you would like Packstack to install Heat "
10691
"CloudFormation API"),
@@ -192,8 +177,6 @@ def create_manifest(config, messages):
192177
manifestfile = "%s_heat.pp" % config['CONFIG_CONTROLLER_HOST']
193178
manifestdata = getManifestTemplate(get_mq(config, "heat"))
194179
manifestdata += getManifestTemplate("heat.pp")
195-
if config.get('CONFIG_HEAT_USING_TRUSTS', 'n') == 'y':
196-
manifestdata += getManifestTemplate("heat_trusts.pp")
197180

198181
fw_details = dict()
199182
key = "heat"
@@ -212,10 +195,6 @@ def create_manifest(config, messages):
212195
def create_keystone_manifest(config, messages):
213196
manifestfile = "%s_keystone.pp" % config['CONFIG_CONTROLLER_HOST']
214197
manifestdata = getManifestTemplate("keystone_heat.pp")
215-
216-
if config.get('CONFIG_HEAT_USING_TRUSTS', 'n') == 'y':
217-
manifestdata += getManifestTemplate("keystone_heat_trusts.pp")
218-
219198
appendManifestFile(manifestfile, manifestdata)
220199

221200

packstack/plugins/provision_700.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ def marshall_conf_bool(conf, key):
270270
conf[key] = False
271271

272272

273-
def using_heat(config):
274-
if config['CONFIG_HEAT_INSTALL'] != "y":
275-
config['CONFIG_HEAT_USING_TRUSTS'] = "n"
276-
277-
278273
def using_neutron(config):
279274
# Using the neutron or nova api servers as the provisioning target
280275
# will suffice for the all-in-one case.
@@ -295,7 +290,6 @@ def using_neutron(config):
295290

296291
def create_demo_manifest(config, messages):
297292
using_neutron(config)
298-
using_heat(config)
299293
manifest_file = '%s_provision_demo.pp' % config['CONFIG_CONTROLLER_HOST']
300294
manifest_data = getManifestTemplate("provision_demo.pp")
301295
appendManifestFile(manifest_file, manifest_data)
@@ -316,7 +310,6 @@ def create_storage_manifest(config, messages):
316310

317311
def create_tempest_manifest(config, messages):
318312
using_neutron(config)
319-
using_heat(config)
320313
manifest_file = '%s_provision_tempest.pp' % \
321314
config['CONFIG_CONTROLLER_HOST']
322315
manifest_data = getManifestTemplate("provision_tempest.pp")

packstack/puppet/templates/heat.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
auth_encryption_key => hiera('CONFIG_HEAT_AUTH_ENC_KEY'),
1111
}
1212

13+
keystone_user_role { 'admin@admin':
14+
ensure => present,
15+
roles => ['admin', '_member_', 'heat_stack_owner'],
16+
require => Class['heat::engine'],
17+
}
18+
1319
class { 'heat::keystone::domain':
1420
auth_url => "http://${heat_cfg_ctrl_host}:35357/v2.0",
1521
keystone_admin => 'admin',

packstack/puppet/templates/heat_trusts.pp

Lines changed: 0 additions & 11 deletions
This file was deleted.

packstack/puppet/templates/keystone_heat_trusts.pp

Lines changed: 0 additions & 4 deletions
This file was deleted.

packstack/puppet/templates/provision_demo.pp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
$admin_password = hiera('CONFIG_KEYSTONE_ADMIN_PW')
99
$admin_tenant_name = 'admin'
1010

11-
# Heat Using Trusts
12-
$heat_using_trusts = hiera('CONFIG_HEAT_USING_TRUSTS')
13-
1411
## Neutron
1512
$public_network_name = 'public'
1613
$public_subnet_name = 'public_subnet'
@@ -37,7 +34,7 @@
3734
password => $password,
3835
}
3936

40-
if $heat_using_trusts == 'y' {
37+
if hiera('CONFIG_HEAT_INSTALL') == 'y' {
4138
keystone_user_role { "${username}@${tenant_name}":
4239
ensure => present,
4340
roles => ['_member_', 'heat_stack_owner'],

packstack/puppet/templates/provision_tempest.pp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
$admin_password = hiera('CONFIG_KEYSTONE_ADMIN_PW')
2020
$admin_tenant_name = 'admin'
2121

22-
# Heat Using Trusts
23-
$heat_using_trusts = hiera('CONFIG_HEAT_USING_TRUSTS')
24-
2522
## Glance
2623
$image_name = 'cirros'
2724
$image_source = hiera('CONFIG_PROVISION_TEMPEST_CIRROS_URL')
@@ -76,7 +73,7 @@
7673
password => $password,
7774
}
7875

79-
if $heat_using_trusts == 'y' {
76+
if hiera('CONFIG_HEAT_INSTALL') == 'y' {
8077
keystone_user_role { "${username}@${tenant_name}":
8178
ensure => present,
8279
roles => ['_member_', 'heat_stack_owner'],

0 commit comments

Comments
 (0)