Skip to content

Commit 065934a

Browse files
authored
Updates from puppet testing.
1 parent 4b24b5c commit 065934a

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

manifests/init.pp

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242

4343
# Make sure we have python3 and latest pip
4444
# https://forge.puppet.com/modules/puppet/python/readme
45-
class { 'python':
46-
version => 'system',
47-
pip => 'latest',
48-
dev => 'present',
49-
}
45+
# class { 'python':
46+
# version => 'system',
47+
# pip => 'latest',
48+
# dev => 'present',
49+
# }
5050

5151
# Install Kolla VENV
5252
# Get paths
@@ -160,20 +160,24 @@
160160
# attempting to call kolla-ansible in it.
161161
exec { 'has_kolla_venv':
162162
command => '/bin/true',
163-
onlyif => "test -f ${kolla_venv}/pyvenv.cfg",
163+
onlyif => "/usr/bin/test -f ${kolla_venv}/pyvenv.cfg",
164164
}
165165

166166
# Install Ansible Galaxy (similar to puppet-forge)
167167
exec { 'ansible-galaxy':
168-
command => "source ${kolla_venv}/bin/activate ; kolla-ansible install-deps",
169-
creates => "${kolla_venv}/lib/python3.9/site-packages/ansible/galaxy",
168+
#command => "source ${kolla_venv}/bin/activate ; kolla-ansible install-deps",
169+
#creates => "${kolla_venv}/lib/python3.9/site-packages/ansible/galaxy",
170+
#require => Exec['has_kolla_venv'],
171+
command => "${kolla_venv}/bin/python kolla-ansible install-deps",
172+
cwd => "${kolla_venv}",
170173
require => Exec['has_kolla_venv'],
174+
creates => "${kolla_venv}/lib/python3.9/site-packages/ansible/galaxy",
171175
}
172176

173177
# Install python openstack client
174178
python::pip { 'python-openstack':
175179
ensure => 'present',
176-
require => Package['python3-pip'],
180+
#require => Package['python3-pip'],
177181
}
178182

179183
$create_link = lookup ('profile_kolla_ansible::link_cluster_to_venv')

0 commit comments

Comments
 (0)