We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 285e022 commit eddbdafCopy full SHA for eddbdaf
0x0A-configuration_management/2-execute_a_command.pp
@@ -1,6 +1,11 @@
1
# Using Puppet to create a manifest that kills a process named killmenow
2
-exec { 'killmenow':
3
- command => '/usr/bin/pkill killmenow',
4
- path => ['/usr/bin', '/bin'], # Add other paths if necessary
5
- refreshonly => true,
+package { 'python3-pip':
+ ensure => installed,
+}
+
6
+exec { 'install_flask':
7
+ command => '/usr/bin/pip3 install Flask==2.1.0',
8
+ path => '/usr/bin',
9
+ unless => '/usr/bin/pip3 show Flask | grep -q "Version: 2.1.0"',
10
+ require => Package['python3-pip'],
11
}
0 commit comments