Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wtd committed May 7, 2019
0 parents commit 456bfb9
Show file tree
Hide file tree
Showing 36 changed files with 1,219 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
skip_list:
- '602'
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# name: .editorconfig
# description: This file helps to configure your editor via editorconfig.
# author: while-true-do.io
# contact: [email protected]
# license: BSD-3-Clause
# reference: https://editorconfig.org/

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

[*.{yml,py,sh}]
charset = utf-8

[*.yml]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# name: .gitattributes
# description: This file facilitates gitattributes.
# author: while-true-do.io
# contact: [email protected]
# license: BSD-3-Clause
# reference: https://git-scm.com/docs/gitattributes

# Ignore some files for exports / releases
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitmessages export-ignore
/tests export-ignore
/molecule export-ignore
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# name: .gitignore
# description: This file facilitates gitignore.
# author: while-true-do.io
# contact: [email protected]
# license: BSD-3-Clause
# reference: https://git-scm.com/docs/gitignore

# repo specific

# compiled source
*.com
*.class
*.dll
*.exe
*.o
*.so

# ansible retry files
*.retry

# cache
**/__pycache__

# temporary files
*.swp
*.swo
*~

# packages
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# logs and databases
*.log
*.sql
*.sqlite

# OS generated files
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

# lock files
*.lock
package-lock.json
65 changes: 65 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# name: .gitmessage
# description: This file helps to write better commit messages.
# author: while-true-do.io
# contact: [email protected]
# license: BSD-3-Clause
#
# usage: git config commit.template .gitmessage
#
#<------------------------- 72 characters ---------------------------->
#
# Pattern:
#
# <tag>: <subject>
#
# <description>
#
# - <tag>: <description>
# - <tag>: <description>
# - <tag>: <description>
#
# Resolves: #<issue number>, #<issue number>
# See also: #<issue number>, #<issue number>
#
#<------------------------- 72 characters ---------------------------->
#
# Example:
#
# feat: Everything OK Button
#
# A long requested Everything OK Button, which will help us a lot!
#
# - add: everything_ok.py
# - remove: not_ok.js
# - update: README.md
# - update: metadata.json
#
# Resolves: #1234
# See also: #4711, #666
#
#<------------------------- 72 characters ---------------------------->
#
# Explanation:
#
# --> TAGS
#
# change tags: can be used for all changes
# - add a feature of file is added
# - remove a feature or file is removed
# - update a feature of file was updated
#
# title tags: only use them for the subject line
# - doc documentation
# - feat feature provided
# - fix bug fix, security fix
# - refactor most likely a re-write or re-code
# - style code style
#
# --> SUBJECT, DESCRIPTION
#
# What was done and why was it done?
#
# --> RESOLVES, SEE ALSO
#
# In most cases, it is mandatory to provide an issue number, which is
# addressed.
45 changes: 45 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# name: .travis.yml
# description: This file tells travis, what needs to be done.
# author: while-true-do.io
# contact: [email protected]
# license: BSD-3-Clause
# reference: https://docs.travis-ci.com/user/customizing-the-build

language: python
services:
# Provide the docker service.
- docker

install:
# Install test dependencies.
- pip install ansible molecule[docker]

before_script:
# Use actual Ansible Galaxy role name for the project directory.
- ln -s $PWD ../while_true_do.srv_cockpit
- cd ../while_true_do.srv_cockpit

script:
# Do the tests.
- molecule test

notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: always

irc:
channels:
- "chat.freenode.net#while-true-do"
on_success: change
on_failure: always

webhooks:
urls:
- https://galaxy.ansible.com/api/v1/notifications/
on_success: always
on_failure: always
on_pull_requests: false
11 changes: 11 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: default

rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
truthy: disable
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2019, while-true-do.io
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit 456bfb9

Please sign in to comment.