# irrigate-orchard_base-cookbook

This cookbook installs and configures a base system on Linux platforms.
Elementary functionality is also available on Windows. 

## Supported Platforms

CentOS 6+
Debian 7+
RedHat 6+
Ubuntu 12+

## Attributes

NTP/Chrony servers. These are set to sensible public defaults and should likely not be changed. 

## Usage

### irrigate-orchard_base::default

Include `irrigate-orchard_base` in your node's `run_list`:

```json
{
  "run_list": [
    "recipe[irrigate-orchard_base::default]",
    "recipe[irrigate-orchard_base::package]",
    "recipe[irrigate-orchard_base::user_ssh]",
  ]
}
```
### irrigate-orchard_base::aide_update
To keep AIDE database up to date, we should perform database update after all chef-client runs.
We assume that any changes (new packages and/or files) will be done with chef only!
In that case this recipe should be the last in run_list.

More details about AIDE http://aide.sourceforge.net/stable/manual.html

## License and Authors

Author:: Russell de Moose (rdemoose@theorchard.com)

## Testing

First, copy `.env.shadow` to `.env` and amend as appropriate.

To run style checks:

```
docker compose run --rm chefws cookstyle
```

To run Test Kitchen, generate AWS credentials and run
```
docker compose run --rm chefws kitchen test
```

Amend `kitchen` command as required.
