A guided tour of machinery | openSUSE Conf 2016
-
Upload
mauro-morales -
Category
Internet
-
view
102 -
download
0
Transcript of A guided tour of machinery | openSUSE Conf 2016
A Guided Tour of Machineryby @_MauroMorales
Map
1.Inspect
$ machinery inspect HOSTNAME
1.Inspect
system A
systemdescription
A
sshsystem B system C
system Csystem C
systemdescription
B
systemdescription
Csystem
descriptionC
systemdescription
C
Machinery
2. Show
$ machinery show SYSTEM
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
2. Show - HTML view
$ machinery show SYSTEM --html
3. Inspect Docker Containers
$ machinery inspect-container DOCKER_IMAGE_NAME
3. Inspect Docker Containers
Docker container
systemdescription
A
Docker exec
Machinery Docker image A
Docker run
4. Compare
$ machinery compare SYSTEM_A SYSTEM_B
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
4. Compare
$ machinery compare SYSTEM_A SYSTEM_B --html
4. Compare - Spot The Difference- Leap ⇔ Leap Docker
- Leap ⇔ Leap Vagrant
- Leap ⇔ Tumbleweed
5. Export$ machinery export-kiwi --kiwi-dir SYSTEM
$ machinery export-autoyast --autoyast-dir SYSTEM
5. Export systemdescription
A
Machinery
Kiwi Autoyast
Machinery is a command line application for creating descriptions of Linux systems and working with them.
Use Cases- Quickly check state of a system
- Configuration Management & Dockerfiles Validation
- Tampered server
- Failed migration
Questions?