Skip to content

Commit eddbdaf

Browse files
Execute a command
1 parent 285e022 commit eddbdaf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# 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,
2+
package { 'python3-pip':
3+
ensure => installed,
4+
}
5+
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'],
611
}

0 commit comments

Comments
 (0)