Configure samba and fix backup for snunmu (#41)
parent
40bb83fa65
commit
8a12b50a42
@ -1,3 +1,4 @@
|
||||
skip_list:
|
||||
- '403' # allow for latest packages
|
||||
- name[casing]
|
||||
- yaml[indentation]
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
skip_list:
|
||||
- '106'
|
||||
@ -0,0 +1,4 @@
|
||||
# These are supported funding model platforms
|
||||
---
|
||||
github: geerlingguy
|
||||
patreon: geerlingguy
|
||||
@ -0,0 +1,56 @@
|
||||
# Configuration for probot-stale - https://github.com/probot/stale
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
||||
daysUntilStale: 90
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
||||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
||||
daysUntilClose: 30
|
||||
|
||||
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
|
||||
onlyLabels: []
|
||||
|
||||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
- planned
|
||||
|
||||
# Set to true to ignore issues in a project (defaults to false)
|
||||
exemptProjects: false
|
||||
|
||||
# Set to true to ignore issues in a milestone (defaults to false)
|
||||
exemptMilestones: false
|
||||
|
||||
# Set to true to ignore issues with an assignee (defaults to false)
|
||||
exemptAssignees: false
|
||||
|
||||
# Label to use when marking as stale
|
||||
staleLabel: stale
|
||||
|
||||
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||
limitPerRun: 30
|
||||
|
||||
pulls:
|
||||
markComment: |-
|
||||
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!
|
||||
|
||||
Please read [this blog post](https://www.jeffgeerling.com/blog/2020/enabling-stale-issue-bot-on-my-github-repositories) to see the reasons why I mark pull requests as stale.
|
||||
|
||||
unmarkComment: >-
|
||||
This pull request is no longer marked for closure.
|
||||
|
||||
closeComment: >-
|
||||
This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.
|
||||
|
||||
issues:
|
||||
markComment: |-
|
||||
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
|
||||
|
||||
Please read [this blog post](https://www.jeffgeerling.com/blog/2020/enabling-stale-issue-bot-on-my-github-repositories) to see the reasons why I mark issues as stale.
|
||||
|
||||
unmarkComment: >-
|
||||
This issue is no longer marked for closure.
|
||||
|
||||
closeComment: >-
|
||||
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
|
||||
@ -0,0 +1,67 @@
|
||||
---
|
||||
name: CI
|
||||
'on':
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: "0 3 * * 4"
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: 'geerlingguy.samba'
|
||||
|
||||
jobs:
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: 'geerlingguy.samba'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install test dependencies.
|
||||
run: pip3 install yamllint ansible-lint
|
||||
|
||||
- name: Lint code.
|
||||
run: |
|
||||
yamllint .
|
||||
ansible-lint
|
||||
|
||||
molecule:
|
||||
name: Molecule
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
distro:
|
||||
- centos7
|
||||
- ubuntu2004
|
||||
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: 'geerlingguy.samba'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install test dependencies.
|
||||
run: pip3 install ansible molecule[docker] docker
|
||||
|
||||
- name: Run Molecule tests.
|
||||
run: molecule test
|
||||
env:
|
||||
PY_COLORS: '1'
|
||||
ANSIBLE_FORCE_COLOR: '1'
|
||||
MOLECULE_DISTRO: ${{ matrix.distro }}
|
||||
@ -0,0 +1,38 @@
|
||||
---
|
||||
# This workflow requires a GALAXY_API_KEY secret present in the GitHub
|
||||
# repository or organization.
|
||||
#
|
||||
# See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy
|
||||
# See: https://github.com/ansible/galaxy/issues/46
|
||||
|
||||
name: Release
|
||||
'on':
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: 'geerlingguy.samba'
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: 'geerlingguy.samba'
|
||||
|
||||
- name: Set up Python 3.
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install Ansible.
|
||||
run: pip3 install ansible-base
|
||||
|
||||
- name: Trigger a new import on Galaxy.
|
||||
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
|
||||
@ -0,0 +1,3 @@
|
||||
*.retry
|
||||
*/__pycache__
|
||||
*.pyc
|
||||
@ -0,0 +1,10 @@
|
||||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
max: 120
|
||||
level: warning
|
||||
|
||||
ignore: |
|
||||
.github/stale.yml
|
||||
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Jeff Geerling
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@ -0,0 +1,31 @@
|
||||
# Ansible Role: Samba (SMB)
|
||||
|
||||
[](https://github.com/geerlingguy/ansible-role-samba/actions?query=workflow%3ACI)
|
||||
|
||||
Installs Samba client and server for RHEL/CentOS.
|
||||
|
||||
## Requirements
|
||||
|
||||
Samba requires ports 137, 138, 139, 445 to be open to function properly. For easy firewall configuration, you can use the `geerlingguy.firewall` role.
|
||||
|
||||
## Role Variables
|
||||
|
||||
None.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
||||
## Example Playbook
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- geerlingguy.samba
|
||||
|
||||
## License
|
||||
|
||||
MIT / BSD
|
||||
|
||||
## Author Information
|
||||
|
||||
This role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).
|
||||
@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: restart smb
|
||||
service: "name={{ samba_daemon }} state=restarted"
|
||||
@ -0,0 +1,2 @@
|
||||
install_date: Fri 16 Sep 18:30:26 2022
|
||||
version: 1.2.0
|
||||
@ -0,0 +1,33 @@
|
||||
---
|
||||
dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
role_name: samba
|
||||
author: geerlingguy
|
||||
description: "Samba for RHEL/CentOS."
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 2.0
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- 8
|
||||
- name: Fedora
|
||||
versions:
|
||||
- all
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- all
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- networking
|
||||
- system
|
||||
- samba
|
||||
- windows
|
||||
- filesystem
|
||||
- fileshare
|
||||
- sharing
|
||||
- files
|
||||
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=true cache_valid_time=600
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.samba
|
||||
@ -0,0 +1,17 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: instance
|
||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
provisioner:
|
||||
name: ansible
|
||||
playbooks:
|
||||
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
|
||||
@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: Include OS-specific variables.
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Ensure Samba-related packages are installed (RedHat).
|
||||
package:
|
||||
name:
|
||||
- samba
|
||||
- samba-client
|
||||
- samba-common
|
||||
- cifs-utils
|
||||
state: present
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Ensure Samba-related packages are installed (Debian).
|
||||
apt:
|
||||
name:
|
||||
- samba
|
||||
- samba-common
|
||||
state: present
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Ensure Samba is running and set to start on boot.
|
||||
service:
|
||||
name: "{{ samba_daemon }}"
|
||||
state: started
|
||||
enabled: true
|
||||
@ -0,0 +1,2 @@
|
||||
---
|
||||
samba_daemon: smbd
|
||||
@ -0,0 +1,2 @@
|
||||
---
|
||||
samba_daemon: smb
|
||||
@ -1,56 +1,54 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
36366133663433613231613961343232323738393961386166343066373337333633313564653266
|
||||
3465326438343038323338653835363837323863663735370a333936383738303331366431636462
|
||||
35373964653835303530336139303163383162363164313333356535666339393231633461313162
|
||||
3861663065633736620a306437666563616266386439373464643635396632633164623066613362
|
||||
63666666306634326638346466646635353333623730303136353761363439396631346665643134
|
||||
61656133323461346639623534633331623533663430643739346261623766343933643937393263
|
||||
65313431613064333361363165653632343462636262396435306666326136313139313837313539
|
||||
34313939633538613661393065656438306537343863653135316530636133373933363638316332
|
||||
64333738633332313233383833393932613535613037373637393236383835333363626332353763
|
||||
31316163343633363463386465616439313661663236663734623438653262643831613932646561
|
||||
30633034633364616338343463366233376663613536623865663036353333656366393134396332
|
||||
39666666343963373539656665306366643736393962323138333636656366623666396638643662
|
||||
32666533356661306137663037663563393634333166353938623434663563366466656463666334
|
||||
39373831303835636331636235616361323435646434653638663561353161633037396634353863
|
||||
66333065386439376537653530323431343834346636663564333835373635356233396334356438
|
||||
61383537653533326565393536623639636434323934376537343030643364333134353731396438
|
||||
31333766383063353630363465323330376139646537356165666361323036376535663433643865
|
||||
38353461393937313833623263356134313935666639333032653434333739393438656561313138
|
||||
64366434376637353139376566623764393562663134353330313162656239653064363136333363
|
||||
30383266646331363338326633383263643739323031393766653833356130353366356535373361
|
||||
36633261386336316361653433663637373034623963646561323132613066653337313031326563
|
||||
63313962343730613436323966323562633563323664656234303064346666303164623831356561
|
||||
31613664303331633830393165383135373563626261363930363362336131623965373136396634
|
||||
38316232653739393439386133306338626462343566633330363336363238346562323561373237
|
||||
66653831396135653032366637323839316533323661633264656432663039303737336535376635
|
||||
32353064613964303738393936373561626661316662336634663637383465646337633964636364
|
||||
30336166393463343664343062366532656365636634313766613766313132623962376665306439
|
||||
31386133623734626338326165623762396338386134346364373336616139616330386166303433
|
||||
32373338326366623237346561396663373839313833666238393937333937396231326465653939
|
||||
35333439323439626332616461363165313732366434333462373464343338356230353630636139
|
||||
61323837376134343061353666356531316565616539646162313964336334653237626431643034
|
||||
35386664383030373037333537383437336234646136643233366339626266666233643563333965
|
||||
30336364613566303634653530386136656239383763636338346436653833653434306438346534
|
||||
65393131306365663837366365656335643763616162643064356561386635383064353339626335
|
||||
31393438373137363937346236343035633363316661663637393661613066343862313464306165
|
||||
30306561326131383336346263366637396362646138313136633466333833663033363961633466
|
||||
31343439353863343264306238633064623763343863343564383163653639303164363461346437
|
||||
33616433656566653065343932386466343436313531363263306637383235353666666233363666
|
||||
62656537303237323034613731343561323766613336363064346334366263663737646132393130
|
||||
36323466323262323937396137366161383066323537353136323832633066383866336365316535
|
||||
37653530323365656633643837666538316537323033613431333839303133326337393233643238
|
||||
30393630643439653733373733393330366466386564646431643232376234373734316637656130
|
||||
34303262633331643736396635663232653332366366616636346539666430313266363736303036
|
||||
66376530323538323439313834326262343234633361626130303535313162306365616265323131
|
||||
32353663396434636134663033396264383061323637356438363362626332363163393734386531
|
||||
62666365633335303264393230303730613731376433613462306464393836626434613961656430
|
||||
31393761316666656637633666316335356433643966363565633934393133653166333731333930
|
||||
31653430656365376133643964336237353064636533313135313965333738386365373638623138
|
||||
65313432386463336338356134373564633938376233343361623932626264623938373333616536
|
||||
64333361376165396665373163316666383830653262343732306536623432353065626532663731
|
||||
63623434613866346532396564303634653565386661363838366339333338353633363437323636
|
||||
37346331323836333561666165393661353730646164636233343362333334626133333934616462
|
||||
66303532636436646632626632326632353732633833653330326632666538363334303965373262
|
||||
38343639303730316235313538333636313438346130386535313334373434333239393366383661
|
||||
373434663138393331353436313837313765
|
||||
66333730653465646636303364316565323435643936343638383337626333363838356636666261
|
||||
6632366364616461663463373635346633343830636130660a616534656536663433643164616434
|
||||
36623834323962633532333461363633653134366631623065626664643738656161626137663763
|
||||
3838666362363361350a363437366565363839326432623338663139323433346330343536616336
|
||||
39633961333833386361633466646430343730353863393835376639303335306265626135633030
|
||||
62626132633037306632306538373335633766616663336135656337386335336264386438373833
|
||||
34613730386135343362633261333436613935376237613938663862363766383033373734666165
|
||||
34323739386539363862633762333634363630663437343865313838303665663136373834623134
|
||||
32303466353830623237623036376637633130326561656337376434313136366662316332663863
|
||||
38653834333630636533636265643866613062356563396461626364623130383030656661613361
|
||||
64326132613162666137616539366262653965333033373336623633646534373030643039663231
|
||||
38363931313431353234346333386562643465383161636632646631353837313139333363356236
|
||||
31313562366462663635643730663062326634666438616261373135323865663238336461383038
|
||||
32306162663530376135366330306265383538326639636134623563303337396363336431363963
|
||||
66393838346232346362653131346233656433373365653735663934656138666565633833616539
|
||||
65343837313434323366363532333530663265363961373733363461653039363236346336313262
|
||||
62326561373638336231386463356335313635336439333764396231323231386362356363383237
|
||||
62383235343134663830373334383139633031356461666138613963643732356534313062373565
|
||||
31303539303931636463363931353938303162303462393963643064343062356532353131636466
|
||||
62336135393938366635343331643538303262613836313462626331666438666132353463373430
|
||||
35613864613738306630376465616662636134346635303636626332343531643434383865346435
|
||||
65333465633631343062633262656133323430626338333966666464623030653835313961653165
|
||||
31353532333232383032363761323637373830623931663834613862613138363836616236393438
|
||||
33353462346630306434306466343562666331393337363939623633366330636362306464346665
|
||||
62396634353066393666393230326663373162303062393136373431643335373165366632336138
|
||||
61353735646539396138306239363862383762663536663630393332633633386630386131386538
|
||||
34613332643539626132633531373239306237623461303837336566616461333266663639656535
|
||||
66373930383935613863623164353462323034393761646239393165376463356432626234323735
|
||||
61346361613937316636366165333738663437393435643636313231343464356337666366323664
|
||||
65656364343766303634373062343461653932373661333334353035346233333462653438363034
|
||||
35396362373061656365343832346630303966383034613061343638623861363537663862313939
|
||||
36343736333364663439343632396634356465656438316461636165393066376165633238643561
|
||||
31313036356538356231636336653737626530393439303764353965646663313065653038616330
|
||||
39623937633065633561613661636166326565336464393331313838323034623063336264663564
|
||||
32396539343339383637343561396431313130313133623439323232376232356437346436346236
|
||||
65396339343531356135343933353930306134363738303332613961316133636430613034343966
|
||||
63383664666364646265343230626464363332386264653664353831376162626533623161323231
|
||||
61613836646435383136613966386237366364313263616666376264613735386237613461343035
|
||||
30643034343233313931313562326433666666376564653230653238363837343535663165653064
|
||||
66633163663961653939666136366264313837353561616161373337643630326633366638323037
|
||||
38386165633739303438353032616264643461626663303337646436323832353861623562643064
|
||||
62346533336361636537366335666663393165633336656430363461626561373863366439613535
|
||||
39396438356466363238653563353664383331616235376138623064393331626637623663653837
|
||||
38613631663065366364643062306630656232396332643863373264373463363933323963383066
|
||||
39643462366162663263343739643862653965636430663533343731353538663930646664373633
|
||||
31383166336132373939373066303137343535633064633635613866666161643963313838666562
|
||||
64633166356134363664666363633861353762303263303233626537323965613666636433343861
|
||||
32306136373962393734376264353630613337343165373963653263653234616330633763393635
|
||||
64656232346262656439383364636234623130363635346633663432336638393638646435366266
|
||||
33303037646432646630326536333037643233323466623362393537386164393732336530623334
|
||||
64303036646331656233336137323963313964356136323533396564303166326333656534626433
|
||||
38623662643537356230353233646332333737336334333731343466346465343238643633653062
|
||||
37346463373232636332633239376431653464653261383461306433326665353866
|
||||
|
||||
Loading…
Reference in New Issue