Metadata-Version: 2.1
Name: pyarchops-dnsmasq
Version: 0.0.1
Summary: Install All dnsmasq
Home-page: https://github.com/pyarchops/dnsmasq
Author: Azul
Author-email: pyarchops@azulinho.com
License: MIT license
Keywords: pyarchops_dnsmasq
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: ansible (==2.7.5)
Requires-Dist: asn1crypto (==0.24.0)
Requires-Dist: bcrypt (==3.1.5)
Requires-Dist: cffi (==1.11.5)
Requires-Dist: cryptography (==2.4.2)
Requires-Dist: idna (==2.8)
Requires-Dist: jinja2 (==2.10)
Requires-Dist: markupsafe (==1.1.0)
Requires-Dist: paramiko (==2.4.2)
Requires-Dist: pyasn1 (==0.4.4)
Requires-Dist: pycparser (==2.19)
Requires-Dist: pynacl (==1.3.0)
Requires-Dist: pyyaml (==3.13)
Requires-Dist: six (==1.12.0)
Requires-Dist: suitable (==0.14.0)

=====================
pyArchOps/dnsmasq
=====================

.. image:: https://badge.fury.io/py/pyarchops-dnsmasq.svg
        :target: https://pypi.python.org/pypi/pyarchops-dnsmasq

.. image:: https://img.shields.io/gitlab/pipeline/pyarchops/dnsmasq/next-release.svg
        :target: https://gitlab.com/pyarchops/dnsmasq/pipelines

.. image:: https://readthedocs.org/projects/dnsmasq/badge/?version=latest
        :target: https://dnsmasq.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/pyarchops/dnsmasq/shield.svg
     :target: https://pyup.io/repos/github/pyarchops/dnsmasq/
          :alt: Updates


dnsmasq


* Free software: MIT license
* Documentation: https://pyarchops-dnsmasq.readthedocs.io.


Features
--------

* dnsmasq

Instalation
--------------

.. code-block:: console

    $ pip install pyarchops-dnsmasq


Usage
--------

.. code-block:: python

    impor os
    import textwrap
    from suitable import Api
    from pyarchops import helpers
    from pyarchops_dnsmasq import dnsmasq

    api = Api(
        '127.0.0.1:22',
        connection='smart',
        remote_user='root',
        private_key_file=os.getenv('HOME') + '/.ssh/id_rsa',
        become=True,
        become_user='root',
        sudo=True,
        ssh_extra_args='-o StrictHostKeyChecking=no'
    )

    dnsmasq_conf = textwrap.dedent('''
        no-poll
        no-resolv
        cache-size=1500
        no-negcache
        server=/core-vpn/10.16.254.1
        server=/core-vpn/10.16.254.2
        server=/core-vpn/10.16.254.3
        server=8.8.4.4
        server=8.8.8.8
    ''')

    resolve_conf = 'nameserver 127.0.0.1'

    config = {
        'dnmasq_conf': dnsmasq_conf,
        'resolv_conf': resolve_conf
    }

    result = dnsmasq.apply(api, config=config)
    print(result)

Development
-----------

Install requirements:

.. code-block:: console

    $ sudo pacman -S tmux python-virtualenv python-pip libjpeg-turbo gcc make vim git tk tcl

Git clone this repository

.. code-block:: console

    $ git clone https://github.com/pyarchops/dnsmasq.git pyarchops.dnsmasq
    $ cd pyarchops.dnsmasq


2. See the `Makefile`, to get started simply execute:

.. code-block:: console

    $ make up


Credits
-------

* TODO



=======
History
=======

0.0.1 (2018-12-11)
------------------

* First release on PyPI.


