Justin Phelps @Linuturk Topics Installing SaltStack Remote - - PowerPoint PPT Presentation

justin phelps linuturk topics
SMART_READER_LITE
LIVE PREVIEW

Justin Phelps @Linuturk Topics Installing SaltStack Remote - - PowerPoint PPT Presentation

Justin Phelps @Linuturk Topics Installing SaltStack Remote Execution Grains Modules States Pillar Cloud GitFS Installation Insecure One-Liner: curl -L https://bootstrap.saltstack.com | sudo sh -s -- Make


slide-1
SLIDE 1

Justin Phelps @Linuturk

slide-2
SLIDE 2

Topics

  • Installing SaltStack
  • Remote Execution
  • Grains
  • Modules
  • States
  • Pillar
  • Cloud
  • GitFS
slide-3
SLIDE 3

Installation

Insecure One-Liner:

curl -L https://bootstrap.saltstack.com | sudo sh -s --

Make sure the salt-master package is also installed and that the service is running.

slide-4
SLIDE 4

Configuration

/etc/salt/master|minion /srv/salt/top.sls /srv/pillar/top.sls

slide-5
SLIDE 5

Remote Execution

The foundation of everything to come. Message queue system. SPEED salt ‘*’ test.ping salt ‘*’ cmd.run whoami salt ‘*’ pkg.upgrade

slide-6
SLIDE 6

Grains

Information gathered about hosts. Used to target nodes. salt ‘*’ grains.items salt -G ‘os:Windows’ test.ping

slide-7
SLIDE 7

Modules

Code that defines how various tasks are performed. Execution Modules Used in the remote execution examples. State Modules Built on execution modules to allow states to be defined.

slide-8
SLIDE 8

States

Files that contain YAML. This defines the desired state of the server. https://github.com/linuturk/saltstates vim:

  • pkg.installed
slide-9
SLIDE 9

Pillar

Store your secrets here. Targeting encrypts the pillar data for the targeted nodes only. /srv/pillar/top.sls pillar.example

slide-10
SLIDE 10

Cloud

Provision resources on various clouds. github.com/Linuturk/webpagetest provider.example profile.example mapfile.example

slide-11
SLIDE 11

GitFS

Keep your states in version control. Configure GitFS on your master. Git branches map to Salt environments. Multiple remotes possible. Can also be used for pillar (private repos).

slide-12
SLIDE 12

A Few More Things

  • Master / Syndic
  • Runners
  • Returners
  • ACL’s / Command Limits
  • docs.saltstack.com
  • github.com/saltstack
slide-13
SLIDE 13

Thanks!

@Linuturk www.onitato.com