I’m trying to create a script to replicate External Site Subscriptions, Custom Sites, and content in the Custom Sites (Analyses/Fixlets/Tasks/Baselines), plus all the Role and Automatic Group configuration information from a Production environment to a Test environment. The idea is to have the script use RestAPI to subscribe any missing sites then wipe out the custom content in Test and copy across the content from the Production site.
I’m using it as an excuse to learn Python and the RestAPI.
I have been told that our Console Operators need to be able to “test” new versions of BigFix before I am going to be allowed to deploy the versions to Production. Having been bitten by the Malicious Compliance bug, I figure the Test Environment should be configured with the same sites, and populated with all the content I can grab from the Production environment. But I’d rather not have to do this manually ever quarter.
I can poll the sites and compare them to see what is missing, but I’m trying to figure out how to use the “
masthead of <site>” relevance to see if I can get a copy of the masthead file needed to subscribe the missing sites to the Test Environment.
Anyone have any pointers or suggestions?