12 lines
280 B
Python
12 lines
280 B
Python
|
distro = 'centos linux'
|
||
|
pybin = '/usr/bin/python'
|
||
|
script['pre'] = """#!/bin/bash
|
||
|
touch /root/BDISK
|
||
|
"""
|
||
|
script['post'] = """#!/bin/bash
|
||
|
rm -f /root/BDISK
|
||
|
"""
|
||
|
pkg['pre'] = ['yum', 'makecache']
|
||
|
pkg['install'] = ['yum', '-y', 'install', '%PKG%']
|
||
|
pkg['check'] = ['rpm', '-qi', '%PKG']
|