setup no longer add patch pillar to minion

This commit is contained in:
m0duspwnens
2022-10-27 10:56:29 -04:00
parent a95c2a690a
commit 6525e0f201

View File

@@ -148,20 +148,6 @@ function add_sensoroni_to_minion() {
" " >> $PILLARFILE
}
# Patch pillar settings.
function add_patch_pillar_to_minion() {
printf '%s\n'\
"patch:"\
" os:"\
" source: '$source'"\
" schedule_name: '$PATCHSCHEDULENAME'"\
" enabled: True"\
" splay: 300"\
"" >> $PILLARFILE
}
# Sensor settings for the minion pillar
function add_sensor_to_minion() {
echo "sensor:" >> $PILLARFILE
@@ -253,7 +239,6 @@ if [[ "$OPERATION" = 'add' || "$OPERATION" = 'setup' ]]; then
fi
create_minion_files
add_host_to_minion
add_patch_pillar_to_minion
add_sensoroni_to_minion
create$NODETYPE
echo "Minion file created for $MINION_ID"