Skip to content

Instantly share code, notes, and snippets.

@flavio
Created April 15, 2016 10:29
Show Gist options
  • Save flavio/8c4c735ebe5457ba78abdffc4038699c to your computer and use it in GitHub Desktop.
Save flavio/8c4c735ebe5457ba78abdffc4038699c to your computer and use it in GitHub Desktop.
Messing around with salt on leap 42.1

Installing the master

salt-test-master:~ # zypper in salt-master
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 56 NEW packages are going to be installed:
  dmidecode libblas3 libgfortran3 libgit2-22 liblapack3 libmysqlclient18 libpgm-5_2-0 libquadmath0 libsodium13 libzmq5 mariadb mariadb-client mariadb-errormessages python-backports.ssl_match_hostname python-certifi python-cffi
  python-cryptography python-ecdsa python-enum34 python-futures python-gevent python-gnupg python-greenlet python-idna python-ipaddress python-Jinja2 python-Mako python-MarkupSafe python-msgpack-python python-MySQL-python python-netaddr
  python-numpy python-pam python-paramiko python-pexpect python-psutil python-py python-pyasn1 python-pycparser python-pycrypto python-pycurl python-pygit2 python-pyOpenSSL python-pyserial python-PyYAML python-pyzmq python-requests
  python-simplejson python-six python-tornado python-Twisted python-zope.interface rpm-python salt salt-master zeromq-tools

The following 18 recommended packages were automatically selected:
  mariadb python-cffi python-futures python-gevent python-gnupg python-Mako python-MySQL-python python-netaddr python-numpy python-paramiko python-pexpect python-py python-pycurl python-pygit2 python-simplejson python-tornado
  python-Twisted zeromq-tools

56 new packages to install.
Overall download size: 32.0 MiB. Already cached: 0 B. After the operation, additional 208.8 MiB will be used.
Continue? [y/n/? shows all options] (y): 

Installing the minion

salt-test-minion:~ # zypper in salt-minion
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 53 NEW packages are going to be installed:
  libblas3 libgfortran3 liblapack3 libmysqlclient18 libpgm-5_2-0 libquadmath0 libsodium13 libzmq5 mariadb mariadb-client mariadb-errormessages python-backports.ssl_match_hostname python-certifi python-cffi python-cryptography python-ecdsa
  python-enum34 python-futures python-gevent python-gnupg python-greenlet python-idna python-ipaddress python-Jinja2 python-Mako python-MarkupSafe python-msgpack-python python-MySQL-python python-netaddr python-numpy python-pam
  python-paramiko python-pexpect python-psutil python-py python-pyasn1 python-pycparser python-pycrypto python-pycurl python-pyOpenSSL python-pyserial python-PyYAML python-pyzmq python-requests python-simplejson python-six python-tornado
  python-Twisted python-zope.interface rpm-python salt salt-minion zeromq-tools

The following 17 recommended packages were automatically selected:
  mariadb python-cffi python-futures python-gevent python-gnupg python-Mako python-MySQL-python python-netaddr python-numpy python-paramiko python-pexpect python-py python-pycurl python-simplejson python-tornado python-Twisted zeromq-tools

53 new packages to install.
Overall download size: 30.2 MiB. Already cached: 0 B. After the operation, additional 206.0 MiB will be used.
Continue? [y/n/? shows all options] (y): 

Point the minion to the master:

echo "master: salt-test-master" >> /etc/salt/minion

Accepting the minion

On the master:

salt-key -Ay

On the master:

salt-test-master:~ # salt '*' test.ping
salt-test-minion.in.da.office:
    True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment