GithubHelp home page GithubHelp logo

edhull / ansible-truenas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arensb/ansible-truenas

0.0 0.0 0.0 304 KB

Ansible collection to manage TrueNAS

License: Apache License 2.0

Python 99.53% Makefile 0.47%

ansible-truenas's Introduction

Ansible Collection - arensb.truenas

Control a TrueNAS box using its API.

Supported versions of Ansible

  • Tested with 2.10.8

Included content

This collection consists primarily of a set of Ansible modules to configure a TrueNAS machine, using the TrueNAS API to control the Middleware Daemon.

There are several ways to talk to the Middleware, but at present this collection only supports running midclt commands on the box. So you will need root access there, just as for any other Ansible client. In the future, it may support RESTful control.

Modules

Name Description
arensb.truenas.filesystem Manage ZFS filesystems.
arensb.truenas.group Manage Unix groups.
arensb.truenas.hostname Set the hostname.
arensb.truenas.jail Set up a jail.
arensb.truenas.jails Manage the jail system.
arensb.truenas.nfs Manage NFS service configuration.
arensb.truenas.plugin Manage plugins and their jails.
arensb.truenas.pool_snapshot_task Periodic snapshots of ZFS volumes.
arensb.truenas.service Manage services.
arensb.truenas.sharing_nfs Manage NFS exports.
arensb.truenas.sharing_smb Manage SMB shares.
arensb.truenas.systemdataset Manage the system dataset.
arensb.truenas.user Manage users.

Installing this collection

The easiest way to install this collection is through Ansible Galaxy:

ansible-galaxy collection install arensb.truenas

Examples

- name: Example tasks
  collections:
    - arensb.truenas
  hosts: truenas-box
  become: yes
  tasks:
    - name: Set the hostname
      hostname:
        name: new-hostname
    - name: Turn on sshd
      service:
        name: sshd

Note that since several of the module names are the same as builtin ones, you may want to use the full name to avoid confusion:

- hosts: truenas-box
  become: yes
  tasks:
    - arensb.truenas.hostname:
        name: new-hostname

The individual modules also have documentation strings, and should work with ansible-doc, e.g.:

ansible-doc -t module arensb.truenas.user

Contributing to this collection

The best way to contribute a patch or feature is to create a pull request.

The plugins/modules/template file provides a starting point for new modules.

Changelog

See changelog.yaml

Authors and Contributors

ansible-truenas's People

Contributors

arensb avatar edhull avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.