powershell dsc と linux

Download PowerShell DSC と Linux

Post on 23-Jan-2017

620 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

  • PowerShell DSC LinuxSystem Center User Group Japan #15 (2016.09.10)

    Kazuki Takai

  • (Takai Kazuki)

    ISP

    Windows Server / System Center / Linux / etc

    System Center User Group Japan (SCUGJ)

    Twitter : @zhuky7 / Facebook : kazuki.takai

    Blog : http://operationslab.wordpress.com/

    2

  • Agenda

    PowerShell DSC

    PowerShell DSC Linux

    Azure Automation DSC Linux

    PowerShell on Linux

    3

  • facebook

    Preview

    4

  • Review

    PowerShell DSCPowerShell DSC

    5

  • PowerShell DSC

    Chef Puppet

    6

  • PowerShell DSC

    Desired State Configuration

    Configuration

    Configuration as Code

    PowerShell / WMF 4.0

    7

  • Infrastructure as Code

    Infrastructure as Code : 2

    Infrastructure as Code

    Azure Resource Manager, Chef Provision, etc

    Configuration as Code

    OS/OSE

    PowerShell DSC, Azure Automation DSC, Chef, Puppet, etc

    8

  • PowerShell DSC

    9

  • PowerShell DSC

    Windows PowerShell

    10

    DSC Resource

  • DSC

    Configuration

    Configuration PowerShell

    Configuration MOF

    Resource

    Configuration

    PowerShell

    11

  • DSC

    Local Configuration Manager LCM;

    DSC

    MOF Resource

    DSC Pull

    Pull

    DSC Configuration Resource

    DSC LCM MOF

    LCM

    12

  • DSC 13

    DSC Configuration MOF

    ZIPDSC Resource

    dll / ps1 / etc

    DSC Pull Server

    WMF / PowerShell

    Internet Information Services

    DSC Service

    + Report Data

    DSC Target Node

  • 2

    Push

    DSC Push

    Push PSRemoting

    Pull

    DSC LCM Pull Pull

    DSC Pull

    14

  • LCM : Local Configuration Manager

    MOF DSC

    Pull

    ApplyOnly :

    ApplyAndMonitor :

    ApplyAndAutoCorrect :

    15

  • PowerShell DSC

    for LinuxPowerShell DSC Linux

    16

  • PowerShell DSC for Linux

    PowerShell DSC Linux

    Windows

    OS

    Azure AWS VM

    PowerShell DSC for Linux

    Linux DSC Agent LCM

    Linux DSC Resource nx* DSC

    17

  • PowerShell DSC for Linux

    OS

    RHEL CentOSOracle LinuxDebianUbuntuSuSE

    MSDN

    glibc, python, python-ctypes, openssl, lincurl

    omiserver

    PowerShell DSC for Linux / Linux DSC

    18

  • DSC for Linux

    glibc, python, python-ctypes, openssl, lincurl

    Ubuntu 16.04 LTS Python

    OMI Server GitHub

    https://github.com/Microsoft/omi

    PowerShell DSC for Linux GitHub

    https://github.com/Microsoft/PowerShell-DSC-for-Linux

    Microsoft 2016.09.10

    19

    https://github.com/Microsoft/omihttps://github.com/Microsoft/PowerShell-DSC-for-Linux

  • Linux DSC

    Linux DSC nx

    20

    nxArchive

    nxEnvironment

    nxFile

    nxFileLine

    nxGroup

    nxPackage

    nxScript

    nxService

    nxSshAuthorizedKeys

    nxUser

    nxComputer nxIPAddress

    nxDNSServerAddress

    nxFirewall

  • Linux DSC Configuration

    Windows

    WMF / PowerShell 4.0

    Linux DSC

    PowerShellGet PowerShell Gallery nx

    Linux

    PowerShell Core v6.0.0-alpha.9

    PowerShell DSC for Linux version 1.1.1

    21

  • DemoPowerShell DSC for Linux

    22

  • Azure

    Automation DSCAzure Automation DSC Linux

    23

  • Azure Automation DSC

    Azure Automation

    PowerShell DSC Pull

    DSC Pull

    Azure VM

    OS LCM Pull Windows

    24

  • Azure Automation DSC 25

    DSC Configuration MOF

    ZIPDSC Resource

    dll / ps1 / etc

    Azure Automation

    DSC Target Node

  • Azure Automation DSC

    Azure

    DSC Configuration

    DSC Resource

    Linux

    PowerShell DSC for Linux version 1.1 2016.0910

    26

  • Azure Automation DSC + Linux

    Step

    1. Azure Automation

    2. DSC Configuration Azure Automation

    3. Azure Automation

    4. Configuration

    5. DSC

    6. DSC Azure Automation DSC

    7. DSC

    27

  • Azure Automation

    28

  • Azure Automation 29

    DSC Resource

    Configuration

  • Point! : Linux

    PowerShell DSC for Linux version 1.1

    Register.py Azure Automation DSC

    /opt/microsoft/dsc/Scripts/Register.py

    : Automation account registration key

    : Automation account registration url

    Azure

    Register.py metaconfiguration MOF

    nx

    30

  • DemoAzure Automation DSC

    31

  • PowerShell on

    LinuxPowerShell for every system!

    32

  • PowerShell on Linux

    PowerShell Linux

    Linux macOS Windows

    PowerShell for every system!

    GitHub

    https://github.com/PowerShell/PowerShell

    URL

    33

    https://github.com/PowerShell/PowerShell

  • PowerShell Core Core Edition

    Desktop Edition

    Full .NET Framework

    Windows Windows Server Nano Server

    Core Edition

    .NET Core

    Desktop Edition

    WindowsNano LinuxmacOS

    Edition $PSVersionTable.PSEdition

    34

  • alpha v6.0.0-alpha.9

    PSRPPowerShell Remoting Protocol

    SSH PowerShell Subsystem

    OS

    .NET Core Desktop Edition

    Nano Server PowerShell 5.1 Core EditionDesktop Edition PowerShell

    35

  • DemoPowerShell on Linux

    36

  • PowerShell DSC for Linux Windows Linux

    Azure Automation DSC DSC Pull

    DSC

    37

  • Windows PowerShell Desired State Configuration

    https://msdn.microsoft.com/ja-jp/powershell/dsc/overview

    Open Management Infrastructure

    https://github.com/Microsoft/omi

    PowerShell Desired State Configuration for Linux

    https://github.com/Microsoft/PowerShell-DSC-for-Linux

    PowerShell DSC for Linux version 1.1 is Now Available! And New Linux Resources!

    https://blogs.msdn.microsoft.com/powershell/2015/09/29/powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources/

    Azure Automation DSC

    https://azure.microsoft.com/ja-jp/documentation/articles/automation-dsc-overview/

    38

    https://msdn.microsoft.com/ja-jp/powershell/dsc/overviewhttps://github.com/Microsoft/omihttps://github.com/Microsoft/PowerShell-DSC-for-Linuxhttps://blogs.msdn.microsoft.com/powershell/2015/09/29/powershell-dsc-for-linux-version-1-1-is-now-available-and-new-linux-resources/https://azure.microsoft.com/ja-jp/documentation/articles/automation-dsc-overview/

Recommended

View more >