diff --git a/files/config.xml b/files/config.xml new file mode 100644 index 0000000000000000000000000000000000000000..dbec80d3d47aea85922491971913c6d0be631fdd --- /dev/null +++ b/files/config.xml @@ -0,0 +1,186 @@ +<configuration version="37"> + <folder id="default" label="Default Folder" path="/home/henfr13/Sync" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> + <filesystemType>basic</filesystemType> + <device id="CUK2UIF-LSSZY42-QGX2WUE-6E4U5WW-QRTLJCZ-KNMW7S6-OOJWRJF-7REP2QM" introducedBy=""> + <encryptionPassword></encryptionPassword> + </device> + <device id="H6TGJLN-OMUZ3AQ-LTXMLIN-4OC3ZA6-3D7DDJJ-VD5JLPF-OIDWNWJ-7VQFWAI" introducedBy=""> + <encryptionPassword></encryptionPassword> + </device> + <minDiskFree unit="%">1</minDiskFree> + <versioning> + <cleanupIntervalS>3600</cleanupIntervalS> + <fsPath></fsPath> + <fsType>basic</fsType> + </versioning> + <copiers>0</copiers> + <pullerMaxPendingKiB>0</pullerMaxPendingKiB> + <hashers>0</hashers> + <order>random</order> + <ignoreDelete>false</ignoreDelete> + <scanProgressIntervalS>0</scanProgressIntervalS> + <pullerPauseS>0</pullerPauseS> + <maxConflicts>10</maxConflicts> + <disableSparseFiles>false</disableSparseFiles> + <disableTempIndexes>false</disableTempIndexes> + <paused>false</paused> + <weakHashThresholdPct>25</weakHashThresholdPct> + <markerName>.stfolder</markerName> + <copyOwnershipFromParent>false</copyOwnershipFromParent> + <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>2</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> + <copyRangeMethod>standard</copyRangeMethod> + <caseSensitiveFS>false</caseSensitiveFS> + <junctionsAsDirs>false</junctionsAsDirs> + <syncOwnership>false</syncOwnership> + <sendOwnership>false</sendOwnership> + <syncXattrs>false</syncXattrs> + <sendXattrs>false</sendXattrs> + <xattrFilter> + <maxSingleEntrySize>0</maxSingleEntrySize> + <maxTotalSize>0</maxTotalSize> + </xattrFilter> + </folder> + <device id="CUK2UIF-LSSZY42-QGX2WUE-6E4U5WW-QRTLJCZ-KNMW7S6-OOJWRJF-7REP2QM" name="vlc.itn.liu.se" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> + <address>dynamic</address> + <paused>false</paused> + <autoAcceptFolders>false</autoAcceptFolders> + <maxSendKbps>0</maxSendKbps> + <maxRecvKbps>0</maxRecvKbps> + <maxRequestKiB>0</maxRequestKiB> + <untrusted>false</untrusted> + <remoteGUIPort>0</remoteGUIPort> + </device> + <device id="H6TGJLN-OMUZ3AQ-LTXMLIN-4OC3ZA6-3D7DDJJ-VD5JLPF-OIDWNWJ-7VQFWAI" name="henfr13lnx01" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> + <address>dynamic</address> + <paused>false</paused> + <autoAcceptFolders>false</autoAcceptFolders> + <maxSendKbps>0</maxSendKbps> + <maxRecvKbps>0</maxRecvKbps> + <maxRequestKiB>0</maxRequestKiB> + <untrusted>false</untrusted> + <remoteGUIPort>0</remoteGUIPort> + </device> + <device id="PGKDTTM-FFTXBHZ-KAGWHPU-INYT2NH-OUR5FDP-XORYC5K-DPX2HBG-N3RWFQ4" name="lnx00181" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> + <address>dynamic</address> + <paused>false</paused> + <autoAcceptFolders>false</autoAcceptFolders> + <maxSendKbps>0</maxSendKbps> + <maxRecvKbps>0</maxRecvKbps> + <maxRequestKiB>0</maxRequestKiB> + <untrusted>false</untrusted> + <remoteGUIPort>0</remoteGUIPort> + </device> + <gui enabled="false" tls="false" debugging="false"> + <address>127.0.0.1:8384</address> + <apikey>CbDUHpviQxbstTEhMjSDVtgqDSKvaK3A</apikey> + <theme>default</theme> + </gui> + <ldap></ldap> + <options> + <listenAddress>default</listenAddress> + <globalAnnounceServer>default</globalAnnounceServer> + <globalAnnounceEnabled>true</globalAnnounceEnabled> + <localAnnounceEnabled>true</localAnnounceEnabled> + <localAnnouncePort>21027</localAnnouncePort> + <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr> + <maxSendKbps>0</maxSendKbps> + <maxRecvKbps>0</maxRecvKbps> + <reconnectionIntervalS>60</reconnectionIntervalS> + <relaysEnabled>true</relaysEnabled> + <relayReconnectIntervalM>10</relayReconnectIntervalM> + <startBrowser>true</startBrowser> + <natEnabled>true</natEnabled> + <natLeaseMinutes>60</natLeaseMinutes> + <natRenewalMinutes>30</natRenewalMinutes> + <natTimeoutSeconds>10</natTimeoutSeconds> + <urAccepted>0</urAccepted> + <urSeen>0</urSeen> + <urUniqueID></urUniqueID> + <urURL>https://data.syncthing.net/newdata</urURL> + <urPostInsecurely>false</urPostInsecurely> + <urInitialDelayS>1800</urInitialDelayS> + <autoUpgradeIntervalH>12</autoUpgradeIntervalH> + <upgradeToPreReleases>false</upgradeToPreReleases> + <keepTemporariesH>24</keepTemporariesH> + <cacheIgnoredFiles>false</cacheIgnoredFiles> + <progressUpdateIntervalS>5</progressUpdateIntervalS> + <limitBandwidthInLan>false</limitBandwidthInLan> + <minHomeDiskFree unit="%">1</minHomeDiskFree> + <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL> + <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect> + <tempIndexMinBlocks>10</tempIndexMinBlocks> + <unackedNotificationID>authenticationUserAndPassword</unackedNotificationID> + <trafficClass>0</trafficClass> + <setLowPriority>true</setLowPriority> + <maxFolderConcurrency>0</maxFolderConcurrency> + <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL> + <crashReportingEnabled>true</crashReportingEnabled> + <stunKeepaliveStartS>180</stunKeepaliveStartS> + <stunKeepaliveMinS>20</stunKeepaliveMinS> + <stunServer>default</stunServer> + <databaseTuning>auto</databaseTuning> + <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB> + <announceLANAddresses>true</announceLANAddresses> + <sendFullIndexOnUpgrade>false</sendFullIndexOnUpgrade> + <connectionLimitEnough>0</connectionLimitEnough> + <connectionLimitMax>0</connectionLimitMax> + <insecureAllowOldTLSVersions>false</insecureAllowOldTLSVersions> + </options> + <defaults> + <folder id="" label="" path="~" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true"> + <filesystemType>basic</filesystemType> + <device id="CUK2UIF-LSSZY42-QGX2WUE-6E4U5WW-QRTLJCZ-KNMW7S6-OOJWRJF-7REP2QM" introducedBy=""> + <encryptionPassword></encryptionPassword> + </device> + <minDiskFree unit="%">1</minDiskFree> + <versioning> + <cleanupIntervalS>3600</cleanupIntervalS> + <fsPath></fsPath> + <fsType>basic</fsType> + </versioning> + <copiers>0</copiers> + <pullerMaxPendingKiB>0</pullerMaxPendingKiB> + <hashers>0</hashers> + <order>random</order> + <ignoreDelete>false</ignoreDelete> + <scanProgressIntervalS>0</scanProgressIntervalS> + <pullerPauseS>0</pullerPauseS> + <maxConflicts>10</maxConflicts> + <disableSparseFiles>false</disableSparseFiles> + <disableTempIndexes>false</disableTempIndexes> + <paused>false</paused> + <weakHashThresholdPct>25</weakHashThresholdPct> + <markerName>.stfolder</markerName> + <copyOwnershipFromParent>false</copyOwnershipFromParent> + <modTimeWindowS>0</modTimeWindowS> + <maxConcurrentWrites>2</maxConcurrentWrites> + <disableFsync>false</disableFsync> + <blockPullOrder>standard</blockPullOrder> + <copyRangeMethod>standard</copyRangeMethod> + <caseSensitiveFS>false</caseSensitiveFS> + <junctionsAsDirs>false</junctionsAsDirs> + <syncOwnership>false</syncOwnership> + <sendOwnership>false</sendOwnership> + <syncXattrs>false</syncXattrs> + <sendXattrs>false</sendXattrs> + <xattrFilter> + <maxSingleEntrySize>1024</maxSingleEntrySize> + <maxTotalSize>4096</maxTotalSize> + </xattrFilter> + </folder> + <device id="" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy=""> + <address>dynamic</address> + <paused>false</paused> + <autoAcceptFolders>false</autoAcceptFolders> + <maxSendKbps>0</maxSendKbps> + <maxRecvKbps>0</maxRecvKbps> + <maxRequestKiB>0</maxRequestKiB> + <untrusted>false</untrusted> + <remoteGUIPort>0</remoteGUIPort> + </device> + <ignores></ignores> + </defaults> +</configuration> diff --git a/manifests/init.pp b/manifests/init.pp index c2ed222b3968867167b29de3e962fbed73047fd9..a889fdab03f7374a8e443c7f72d32e190645ea28 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,2 +1,81 @@ +# @summary A short summary of the purpose of this class +# +# A description of what this class does +# init vlc-server +# +# @example +# none class vlc { + firewalld_service {'Allow http in the liu Zone': + ensure => present, + zone => 'liu', + service => 'http', + } + firewalld_service {'Allow https in the liu Zone': + ensure => present, + zone => 'liu', + service => 'https', + } + firewalld_service {'Allow http in the public Zone': + ensure => present, + zone => 'public', + service => 'http', + } + firewalld_service {'Allow https in the public Zone': + ensure => present, + zone => 'public', + service => 'https', + } + + # Känner firewall till servicen syncthing ?? + firewalld_service {'Allow http in the public Zone': + ensure => present, + zone => 'public', + service => 'syncthing', + } + firewalld_service {'Allow https in the public Zone': + ensure => present, + zone => 'liu', + service => 'syncthing', + } + firewalld_service {'Allow https in the public Zone': + ensure => present, + zone => 'liu', + service => 'syncthing-gui', + } + + # Detta funkar för vpn på andra burkar + server_firewall::address_set { 'liu_vpn': + addresses => [ + '10.243.0.0/16', + ], + } + + firewalld_rich_rule { 'allow ssh via vpn': + action => 'accept', + service => 'ssh', + source => { 'ipset' => 'liu_vpn_v4', }, + family => 'ipv4', + zone => 'liu', + } + + # Detta installerar syncthing om det behövs + package { 'syncthing': + ensure => 'installed', + } + + # Installera config.xml + # file { '/home/henfr13/.config': + # ensure => 'directory', + # } + # file { '/home/henfr13/.config/syncthing': + # ensure => 'directory', + # require => File['/home/henfr13/.config'], + # } + # file { '/home/henfr13/.config/syncthing/config.xml': + # ensure => 'file', + # owner => 'henfr13', + # source => "puppet:///modules/${module_name}/config.xml", + # require => File['/home/henfr13/.config/syncthing'], + # } }