Archive for the ‘Uncategorized’ Category
Looks we’ready to go 🙂
## version 0.3.7 2016-11-13
- reworked logic with checking and aplying updates
- reworked logic with notifications when checking for xWindowsUpdateAgentSchedule
- reformatted `dsc_xfirewall` – according to [https://github.com/PowerShell/xNetworking/issues/151](https://github.com/PowerShell/xNetworking/issues/151)
- improved links in `README.md`
- Backup your machine (physical/virtual)
- Run (for server AND agent)
# stop services systemctl stop zabbix-server systemctl stop zabbix-agent # clean cache yum clean all # upgrade releases from 2.x/3.0 to 3.2 yum upgrade http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm # disable additional repository yum-config-manager --disable zabbix-non-supported # update yum update -y # clean cache yum clean all # enable services systemctl enable zabbix-server systemctl enable zabbix-agent
- [FOR AGENTS ONLY] Run:
# for agents systemctl stop zabbix-agent yum clean all yum upgrade http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm yum-config-manager --disable zabbix-non-supported yum install zabbix-agent -y yum clean all systemctl enable zabbix-agent systemctl start zabbix-agent
New version available:
Nobody likes Windows Updates even Microsoft itself. But sometimes one should make sure, you have perks your system needs. But, we co do it old fashion way: check, update, reboot, repeat. Boring, and completly not in a way DevOps do.
Again, Win_manage to the rescue.
First we make sure what we want to do:
dsc_xwindowsupdateagent_schedule first: dsc_dayofweek: sunday dsc_afterhour: 11 dsc_usenotify: true
dsc_xwindowsupdateagent security: dsc_updatenow: 'true' dsc_category: security important: dsc_updatenow: 'true' dsc_category: important optional: dsc_updatenow: 'true' dsc_category: optional
dsc_reboot dsc_reboot: message: Machine requested a reboot when: pending
But what does it do? First, we should prepare update schedule: let’s say, we can start auto-updates on Sunday, after 11 AM (remember 11 AM = 11:00, and 11:00 PM=23:00)
Second: we want to install 3 type of updates: security, important and optional.
Third: we want to auto-reboot our machine (dsc_reboot) and notify us about pending updates count BEFORE and AFTER update patch set (dsc_usenotify: true)
So, we can switch from:
in a time needed to get some music 🙂
During last few weeks I was able to push and heavy test puppet-dsc code in a lots of environments and setups.
We had sysprepped Windows Server 2012 R2 images (different versions, builds and setups), a lots of Windows 10 Professional Workstations (Original, 1511, 1607 builds), few Windows 8.1 Pro – really great statistic sample.
As for now:
- Windows Server 2012 and Windows 2012 R2 – fully supported
- Windows 8.1/10 (original)/10 (1511) – fully supported
- Windows Server 2016/Windows 10 (1607) – unsupported due to parsing bug in Powershell 5.1 – Work in progress
- Windows 7/8 – not tested
- Windows 2008 R2 – not tested
- Chocolatey – with features and sources support (adding, removing, modyfing)
More code is coming, but this fine set allows you to deploy and manage a lots of types of servers and workstations.