This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import urllib.request | |
PAGES = ( | |
("https://support.apple.com/en-us/HT201862", "MacBook Air", "LAPTOP"), | |
("https://support.apple.com/en-us/HT201300", "MacBook Pro", "LAPTOP"), | |
("https://support.apple.com/en-us/HT201894", "Mac mini", "DESKTOP"), | |
("https://support.apple.com/en-us/HT213073", "Mac Studio", "DESKTOP"), | |
("https://support.apple.com/en-us/HT201634", "iMac", "DESKTOP"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
from yaml import load, SafeLoader | |
TEMPLATE = """resource zentral_munki_script_check "mcs-{section}-{rule}" {{ | |
name = "{name}" | |
description = trimspace(<<EODESC | |
{description} | |
EODESC |