Add multiple windows utilities

This commit is contained in:
dev
2024-04-14 01:15:42 +01:00
parent ee5c9c2a2c
commit e95ac9fa4f
19 changed files with 215 additions and 0 deletions

View File

@@ -0,0 +1 @@
include adobereader::install

View File

@@ -0,0 +1,6 @@
class adobereader::install {
package { 'adobereader':
provider => chocolatey,
ensure => '2015.007.20033.02',
}
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>Adobe Acrobat Reader DC</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>Adobe Acrobat Reader DC software is the free, trusted global standard for viewing, printing, signing, sharing, and annotating PDFs.</description>
<type>win_documents</type>
<platform>windows</platform>
<reference>https://acrobat.com/</reference>
<software_name>Adobe Reader</software_name>
<software_license>non-free license</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1,3 @@
include keepass::install
# We will remove this for now. Install is fine. This probably belongs in a generator anyway?
# include keepass::config

View File

@@ -0,0 +1,21 @@
# keepass/manifests/config.pp
class keepass::config {
$leaked_passwords = ['password1', 'password2']
$leaked_usernames = ['user1', 'user2']
$known_password = 'securepassword'
file { 'C:\\Users\\timbo_win7\\Desktop\\modules\\keepass\\files\\sample.kdbx':
ensure => present,
source => 'puppet:///modules/keepass/sample.kdbx',
require => Package['keepass'],
notify => Exec['add_entry_to_keepass'],
}
exec { 'add_entry_to_keepass':
command => 'powershell.exe -ExecutionPolicy Bypass -File "C:\\Users\\timbo_win7\\Desktop\\modules\\keepass\\Add-KeepassEntry.ps1" -DatabasePath "C:\\Users\\timbo_win7\\Desktop\\modules\\keepass\\files\\sample.kdbx" -MasterPassword "securepassword" -Username "user1" -Password "password1"',
provider => 'powershell',
refreshonly => true,
subscribe => File['C:\\Users\\timbo_win7\\Desktop\\modules\\keepass\\files\\sample.kdbx'],
}
}

View File

@@ -0,0 +1,6 @@
class keepass::install {
package { 'keepass':
provider => chocolatey,
ensure => installed,
}
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>KeePass</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>KeePass is a free open source password manager, which helps you to manage your passwords in a secure way.</description>
<type>win_debugger</type>
<platform>windows</platform>
<reference>https://keepass.info/</reference>
<software_name>keepass</software_name>
<software_license>GPLv2</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1,6 @@
class netcat::install {
package { 'netcat':
provider => chocolatey,
ensure => installed,
}
}

View File

@@ -0,0 +1 @@
include netcat::install

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>Netcat</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>Netcat (often abbreviated to nc) is a computer networking utility for reading from and writing to network connections using TCP or UDP.</description>
<type>win_security</type>
<platform>windows</platform>
<reference>https://nmap.org/ncat/</reference>
<software_name>netcat</software_name>
<software_license>custom</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1,6 @@
class nginx::install {
package { 'nginx-service':
provider => chocolatey,
ensure => installed,
}
}

View File

@@ -0,0 +1 @@
include nginx::install

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>nginx</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, a generic TCP/UDP proxy server, as well as a load balancer and an HTTP cache.</description>
<type>win_services</type>
<platform>windows</platform>
<reference>https://nginx.org/en/</reference>
<software_name>nginx</software_name>
<software_license>BSD2</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1,6 @@
class notepadplusplus::install {
package { 'notepadplusplus':
provider => chocolatey,
ensure => installed,
}
}

View File

@@ -0,0 +1 @@
include notepadplusplus::install

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>NotepadPlusPlus</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor and Notepad replacement that supports several languages.</description>
<type>win_documents</type>
<platform>windows</platform>
<reference>https://notepad-plus-plus.org/</reference>
<software_name>notepadplusplus</software_name>
<software_license>GPLV2</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1,6 @@
class vlc::install {
package { 'vlc':
provider => chocolatey,
ensure => installed,
}
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>VLC</name>
<author>Oscar Langford</author>
<author>James Davis</author>
<module_license>MIT</module_license>
<description>VLC Player</description>
<type>win_security</type>
<platform>windows</platform>
<reference>https://www.vlc.com</reference>
<software_name>vlc</software_name>
<software_license>non-free license</software_license>
<!-- for now we just make all windows modules conflict with linux bases -->
<conflict>
<module_path>bases/.*</module_path>
<platform>linux</platform>
</conflict>
</utility>

View File

@@ -0,0 +1 @@
include vlc::install