Bladeren bron

Initial commit

pull/1/head
Ales Komarek 8 jaren geleden
commit
dad1147c8f
21 gewijzigde bestanden met toevoegingen van 185 en 0 verwijderingen
  1. +6
    -0
      CHANGELOG.rst
  2. +13
    -0
      LICENSE
  3. +23
    -0
      README.rst
  4. +1
    -0
      VERSION
  5. +5
    -0
      debian/changelog
  6. +1
    -0
      debian/compat
  7. +15
    -0
      debian/control
  8. +15
    -0
      debian/copyright
  9. +3
    -0
      debian/docs
  10. +6
    -0
      debian/install
  11. +5
    -0
      debian/rules
  12. +1
    -0
      debian/source/format
  13. +1
    -0
      home_assistant/files/home_assistant.conf
  14. +6
    -0
      home_assistant/init.sls
  15. +29
    -0
      home_assistant/map.jinja
  16. +8
    -0
      home_assistant/meta/sensu.yml
  17. +12
    -0
      home_assistant/meta/sphinx.yml
  18. +4
    -0
      home_assistant/server.sls
  19. +10
    -0
      metadata/service/server/cluster.yml
  20. +10
    -0
      metadata/service/server/single.yml
  21. +11
    -0
      metadata/service/support.yml

+ 6
- 0
CHANGELOG.rst Bestand weergeven

home_assistant formula
=========================================

0.1 (2015-08-22)

- Initial formula setup

+ 13
- 0
LICENSE Bestand weergeven

Copyright (c) 2014-2015 OpenSource

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

+ 23
- 0
README.rst Bestand weergeven


==================================
home_assistant
==================================

Service home_assistant description

Sample pillars
==============

Single home_assistant service

.. code-block:: yaml

home_assistant:
server:
enabled: true
version: icehouse

Read more
=========

* links

+ 1
- 0
VERSION Bestand weergeven

0.1

+ 5
- 0
debian/changelog Bestand weergeven

salt-formula-home_assistant (0.1) trusty; urgency=medium

* Initial release

-- ales.komarek@newt.cz Thu, 13 Aug 2015 23:23:41 +0200

+ 1
- 0
debian/compat Bestand weergeven

9

+ 15
- 0
debian/control Bestand weergeven

Source: salt-formula-home_assistant
Maintainer: ales.komarek@newt.cz
Section: admin
Priority: optional
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.6
Homepage: http://www.tcpcloud.eu
Vcs-Browser: https://github.com/tcpcloud/salt-formula-home_assistant
Vcs-Git: https://github.com/tcpcloud/salt-formula-home_assistant.git

Package: salt-formula-home_assistant
Architecture: all
Depends: ${misc:Depends}, salt-master, reclass
Description: home_assistant salt formula
Install and configure home_assistant system.

+ 15
- 0
debian/copyright Bestand weergeven

Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: salt-formula-home_assistant
Upstream-Contact:
Source: https://github.com/tcpcloud/salt-formula-home_assistant

Files: *
Copyright: 2014-2015 OpenSource
License: Apache-2.0
Copyright (C) 2014-2015 OpenSource
.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
.
On a Debian system you can find a copy of this license in
/usr/share/common-licenses/Apache-2.0.

+ 3
- 0
debian/docs Bestand weergeven

README.rst
CHANGELOG.rst
VERSION

+ 6
- 0
debian/install Bestand weergeven

home_assistant/* /usr/share/salt-formulas/env/home_assistant/
metadata/service/* /usr/share/salt-formulas/reclass/service/home_assistant/
# Not all salt formulas has custom states and modules,
# uncomment to install them
# _modules/* /usr/share/salt-formulas/env/_modules/
# _states/* /usr/share/salt-formulas/env/_states/

+ 5
- 0
debian/rules Bestand weergeven

#!/usr/bin/make -f

%:
dh $@


+ 1
- 0
debian/source/format Bestand weergeven

3.0 (native)

+ 1
- 0
home_assistant/files/home_assistant.conf Bestand weergeven

# Service config file

+ 6
- 0
home_assistant/init.sls Bestand weergeven

{%- if pillar.home_assistant is defined %}
include:
{%- if pillar.home_assistant.server is defined %}
- home_assistant.server
{%- endif %}
{%- endif %}

+ 29
- 0
home_assistant/map.jinja Bestand weergeven


{%- set source_engine = salt['pillar.get']('home_assistant:server:source:engine') %}

{%- load_yaml as base_defaults %}
{%- if source_engine == 'git' %}
Debian:
pkgs:
- python-psycopg2
dir:
base: /srv/home_assistant/venv
home: /var/lib/home_assistant
workspace: /srv/home_assistant/workspace
RedHat:
pkgs:
- python-psycopg2
dir:
base: /srv/home_assistant/venv
home: /var/lib/home_assistant
workspace: /srv/home_assistant/workspace
{%- else %}
Debian:
pkgs:
- helpdesk
dir:
base: /usr/lib/home_assistant
{%- endif %}
{%- endload %}

{%- set server = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('home_assistant:server')) %}

+ 8
- 0
home_assistant/meta/sensu.yml Bestand weergeven

# Sample check
check:
local_home_assistant_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C home_assistant -u home_assistant -c 1:1"
interval: 60
occurrences: 1
subscribers:
- local-home_assistant-server

+ 12
- 0
home_assistant/meta/sphinx.yml Bestand weergeven

{%- from "home_assistant/map.jinja" import server with context %}
# Fill in documentation details
doc:
name: home_assistant
description: Some service info
role:
server:
name: server
param:
some_param:
name: "Some name"
value: "some value"

+ 4
- 0
home_assistant/server.sls Bestand weergeven

{%- from "home_assistant/map.jinja" import server with context %}
{%- if server.enabled %}

{%- endif %}

+ 10
- 0
metadata/service/server/cluster.yml Bestand weergeven

applications:
- home_assistant
classes:
- service.home_assistant.support
parameters:
home_assistant:
server:
enabled: true
bind:
address: 0.0.0.0

+ 10
- 0
metadata/service/server/single.yml Bestand weergeven

applications:
- home_assistant
classes:
- service.home_assistant.support
parameters:
home_assistant:
server:
enabled: true
bind:
address: 0.0.0.0

+ 11
- 0
metadata/service/support.yml Bestand weergeven

parameters:
home_assistant:
_support:
collectd:
enabled: false
heka:
enabled: false
sensu:
enabled: false
sphinx:
enabled: true

Laden…
Annuleren
Opslaan