Blog Marcina Bojko

Linux,Windows,serwer, i tak dalej ;)

Change local Administrator passwords. Oh … and unlock them :) On 10k+ machines :)

leave a comment »

Administrator:
  dsc_username: Administrator
  dsc_disabled: false
  dsc_password:
    user: NT AUTHORITY\\SYSTEM
    password: P@$$w0rd

Written by marcinbojko

Listopad 26, 2016 at 13:52

Napisane w work

Tagged with , , , , , ,

Win_manage 0.3.7

leave a comment »

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)

to
„`yaml
dsc_profile:
-„Domain”
-„Private”
„`
from
„`yaml
dsc_profile: Domain,Private
„`

  • improved links in `README.md`

Written by marcinbojko

Listopad 13, 2016 at 17:56

Napisane w Uncategorized

Raw, unedited The Foreman/Puppet + Win_manage.

leave a comment »

Written by marcinbojko

Październik 29, 2016 at 17:25

Napisane w Uncategorized, work

Tagged with , , , ,

hv_default – version 1.18

leave a comment »

Written by marcinbojko

Październik 16, 2016 at 19:48

Napisane w Uncategorized

Quick Zabbix (agent/server) migration from 2.2/3.0 to 3.2 (installed from official repository)

leave a comment »

  1. Backup your machine (physical/virtual)
  2. 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

  3. [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

Written by marcinbojko

Październik 15, 2016 at 14:21

HV-Default – confirmed working with Hyper-V 2016

leave a comment »

New version available:

https://github.com/marcinbojko/hv_default

Written by marcinbojko

Październik 13, 2016 at 18:36

Napisane w Uncategorized, work

Tagged with , ,

Puppet & The Foreman & Powershell DSC – Windows Updates: Neverending story.

leave a comment »

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:

selection_426

to

selection_427

in a time needed to get some music🙂

Written by marcinbojko

Październik 9, 2016 at 18:36

%d bloggers like this: