19
A Guided Tour of Machinery by @_MauroMorales

A guided tour of machinery | openSUSE Conf 2016

Embed Size (px)

Citation preview

Page 1: A guided tour of machinery | openSUSE Conf 2016

A Guided Tour of Machineryby @_MauroMorales

Page 2: A guided tour of machinery | openSUSE Conf 2016

Map

Page 3: A guided tour of machinery | openSUSE Conf 2016

1.Inspect

$ machinery inspect HOSTNAME

Page 4: A guided tour of machinery | openSUSE Conf 2016

1.Inspect

system A

systemdescription

A

sshsystem B system C

system Csystem C

systemdescription

B

systemdescription

Csystem

descriptionC

systemdescription

C

Machinery

Page 5: A guided tour of machinery | openSUSE Conf 2016

2. Show

$ machinery show SYSTEM

Page 6: A guided tour of machinery | openSUSE Conf 2016

2. Show

● OS● Packages● Patterns● Repositories● Users● Groups● Services● Changes Config Files● Changed Managed Files● Unmanaged Files

● OS● Packages● Patterns● Repositories● Users● Groups● Services● Changes Config Files● Changed Managed Files● Unmanaged Files

System Description System

Page 7: A guided tour of machinery | openSUSE Conf 2016

2. Show - HTML view

$ machinery show SYSTEM --html

Page 8: A guided tour of machinery | openSUSE Conf 2016

3. Inspect Docker Containers

$ machinery inspect-container DOCKER_IMAGE_NAME

Page 9: A guided tour of machinery | openSUSE Conf 2016

3. Inspect Docker Containers

Docker container

systemdescription

A

Docker exec

Machinery Docker image A

Docker run

Page 10: A guided tour of machinery | openSUSE Conf 2016

4. Compare

$ machinery compare SYSTEM_A SYSTEM_B

Page 11: A guided tour of machinery | openSUSE Conf 2016

4. Compare

● Os● Packages● Patterns● Repositories● Users● Groups● Services● Changes Config Files● Changed Managed Files● Unmanaged Files

System Description A

● Os● Packages● Patterns● Repositories● Users● Groups● Services● Changes Config Files● Changed Managed Files● Unmanaged Files

System Description B

Page 12: A guided tour of machinery | openSUSE Conf 2016

4. Compare

$ machinery compare SYSTEM_A SYSTEM_B --html

Page 13: A guided tour of machinery | openSUSE Conf 2016

4. Compare - Spot The Difference- Leap ⇔ Leap Docker

- Leap ⇔ Leap Vagrant

- Leap ⇔ Tumbleweed

Page 14: A guided tour of machinery | openSUSE Conf 2016

5. Export$ machinery export-kiwi --kiwi-dir SYSTEM

$ machinery export-autoyast --autoyast-dir SYSTEM

Page 15: A guided tour of machinery | openSUSE Conf 2016

5. Export systemdescription

A

Machinery

Kiwi Autoyast

Page 16: A guided tour of machinery | openSUSE Conf 2016

Machinery is a command line application for creating descriptions of Linux systems and working with them.

Page 17: A guided tour of machinery | openSUSE Conf 2016

Use Cases- Quickly check state of a system

- Configuration Management & Dockerfiles Validation

- Tampered server

- Failed migration

Page 18: A guided tour of machinery | openSUSE Conf 2016

Questions?