# ionics
Various salt states, mainly for convenience, and ease of setup in a Ubuntu-
based development environment.

## standalone minion setup

One quick and easy possible way to use these states, is by running salt
masterless. For a full reference see saltstack docs:

* [SALT MASTERLESS QUICKSTART](https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html)
* [STANDALONE MINION](https://docs.saltstack.com/en/latest/topics/tutorials/standalone_minion.html)

Note that you may have to allow pip based installs when you run
install_salt.sh, i.e. include the -P flag:

```bash
$ sudo sh install_salt.sh -P
```

Once you're setup with salt:

```bash
$ sudo mkdir /srv/ionics
$ sudo chown --recursive `whoami`:`whoami` /srv/ionics
$ git clone <your_fork> /srv/ionics
```

Edit `pillar/common.sls`:

```bash
$ vim /srv/ionics/pillar/common.sls
```

so that `user` and `group` are set to your username (i.e.: `whomai`).

Edit `/etc/salt/minion`, so that at a minimum, it has the same settings as
those in the minimalistic example [minion](minion) file provided in this repo.

To apply the states:

```bash
$ sudo salt-call --local -l debug state.highstate
```

# ionics
Various salt states, mainly for convenience, and ease of setup in a Ubuntu-
based development environment.

## standalone minion setup

One quick and easy possible way to use these states, is by running salt
masterless. For a full reference see saltstack docs:

* [SALT MASTERLESS QUICKSTART](https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html)
* [STANDALONE MINION](https://docs.saltstack.com/en/latest/topics/tutorials/standalone_minion.html)

Note that you may have to allow pip based installs when you run
install_salt.sh, i.e. include the -P flag:

```bash
$ sudo sh install_salt.sh -P
```

Once you're setup with salt:

```bash
$ sudo mkdir /srv/ionics
$ sudo chown -R `id -un`:`id -gn` ionics
$ git clone <your_fork> /srv/ionics
```

Edit `pillar/common.sls`:

```bash
$ vim /srv/ionics/pillar/common.sls
```

so that `user` and `group` are set to your username (i.e.: `whomai`).

Edit `/etc/salt/minion`, so that at a minimum, it has the same settings as
those in the minimalistic example [minion](minion) file provided in this repo.

To apply the states:

```bash
$ sudo salt-call --local -l debug state.highstate
```

Use id command instead of whoami
Use id command instead of whoami
