freescout #16
					 6 changed files with 48 additions and 25 deletions
				
			
		
							
								
								
									
										13
									
								
								bundles/freescout/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								bundles/freescout/README.md
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					Pg Pass workaround: set manually:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					root@freescout /ro psql freescout
 | 
				
			||||||
 | 
					psql (15.6 (Debian 15.6-0+deb12u1))
 | 
				
			||||||
 | 
					Type "help" for help.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					freescout=# \password freescout
 | 
				
			||||||
 | 
					Enter new password for user "freescout":
 | 
				
			||||||
 | 
					Enter it again:
 | 
				
			||||||
 | 
					freescout=#
 | 
				
			||||||
 | 
					\q
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
| 
						 | 
					@ -41,19 +41,22 @@ actions = {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
files = {
 | 
					# files = {
 | 
				
			||||||
    '/opt/freescout/.env': {
 | 
					#     '/opt/freescout/.env': {
 | 
				
			||||||
        # https://github.com/freescout-helpdesk/freescout/blob/dist/.env.example
 | 
					#         # https://github.com/freescout-helpdesk/freescout/blob/dist/.env.example
 | 
				
			||||||
        # Every time you are making changes in .env file, in order changes to take an effect you need to run:
 | 
					#         # Every time you are making changes in .env file, in order changes to take an effect you need to run:
 | 
				
			||||||
        # ´sudo su - www-data -c 'php /opt/freescout/artisan freescout:clear-cache' -s /bin/bash´
 | 
					#         # ´sudo su - www-data -c 'php /opt/freescout/artisan freescout:clear-cache' -s /bin/bash´
 | 
				
			||||||
        'owner': 'www-data',
 | 
					#         'owner': 'www-data',
 | 
				
			||||||
        'content': '\n'.join(
 | 
					#         'content': '\n'.join(
 | 
				
			||||||
            f'{k}={v}' for k, v in
 | 
					#             f'{k}={v}' for k, v in
 | 
				
			||||||
                sorted(node.metadata.get('freescout/env').items())
 | 
					#                 sorted(node.metadata.get('freescout/env').items())
 | 
				
			||||||
        ) + '\n',
 | 
					#         ) + '\n',
 | 
				
			||||||
        'needs': [
 | 
					#         'needs': [
 | 
				
			||||||
            'directory:/opt/freescout',
 | 
					#             'directory:/opt/freescout',
 | 
				
			||||||
            'action:clone_freescout',
 | 
					#             'action:clone_freescout',
 | 
				
			||||||
        ],
 | 
					#         ],
 | 
				
			||||||
    },
 | 
					#     },
 | 
				
			||||||
}
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#sudo su - www-data -s /bin/bash -c 'php /opt/freescout/artisan freescout:create-user --role admin --firstName M --lastName W --email freescout@freibrief.net --password gyh.jzv2bnf6hvc.HKG --no-interaction'
 | 
				
			||||||
 | 
					#sudo su - www-data -s /bin/bash -c 'php /opt/freescout/artisan freescout:create-user --role admin --firstName M --lastName W --email freescout@freibrief.net --password gyh.jzv2bnf6hvc.HKG --no-interaction'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,6 +47,13 @@ defaults = {
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    'systemd-timers': {
 | 
				
			||||||
 | 
					        'freescout-cron': {
 | 
				
			||||||
 | 
					            'command': '/usr/bin/php /opt/freescout/artisan schedule:run',
 | 
				
			||||||
 | 
					            'when': 'Minutely',
 | 
				
			||||||
 | 
					            'user': 'www-data',
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    'zfs': {
 | 
					    'zfs': {
 | 
				
			||||||
        'datasets': {
 | 
					        'datasets': {
 | 
				
			||||||
            'tank/freescout': {
 | 
					            'tank/freescout': {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -174,7 +174,7 @@
 | 
				
			||||||
                        '10.0.10.0/24',
 | 
					                        '10.0.10.0/24',
 | 
				
			||||||
                        '10.0.11.0/24',
 | 
					                        '10.0.11.0/24',
 | 
				
			||||||
                        '192.168.179.0/24',
 | 
					                        '192.168.179.0/24',
 | 
				
			||||||
                        '10.0.238.0/24', # mseibert.freescout
 | 
					                        '10.0.227.0/24', # mseibert.freescout
 | 
				
			||||||
                    ],
 | 
					                    ],
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    'hostname': '88.198.202.28',
 | 
					    'hostname': '159.69.117.89',
 | 
				
			||||||
    'groups': [
 | 
					    'groups': [
 | 
				
			||||||
        'backup',
 | 
					#        'backup',
 | 
				
			||||||
        'debian-12',
 | 
					        'debian-12',
 | 
				
			||||||
        'monitored',
 | 
					#        'monitored',
 | 
				
			||||||
        'webserver',
 | 
					        'webserver',
 | 
				
			||||||
        'freescout',
 | 
					        'freescout',
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
| 
						 | 
					@ -16,13 +16,13 @@
 | 
				
			||||||
        'network': {
 | 
					        'network': {
 | 
				
			||||||
            'internal': {
 | 
					            'internal': {
 | 
				
			||||||
                'interface': 'ens10',
 | 
					                'interface': 'ens10',
 | 
				
			||||||
                'ipv4': '10.0.238.2/32',
 | 
					                'ipv4': '10.0.227.2/24',
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            'external': {
 | 
					            'external': {
 | 
				
			||||||
                'interface': 'eth0',
 | 
					                'interface': 'eth0',
 | 
				
			||||||
                'ipv4': '88.198.202.28/32',
 | 
					                'ipv4': '159.69.117.89/32',
 | 
				
			||||||
                'gateway4': '172.31.1.1',
 | 
					                'gateway4': '172.31.1.1',
 | 
				
			||||||
                'ipv6': '2a01:4f8:c012:8e8f::1/64',
 | 
					                'ipv6': '2a01:4f8:c013:3d0b::1/64',
 | 
				
			||||||
                'gateway6': 'fe80::1',
 | 
					                'gateway6': 'fe80::1',
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,7 @@
 | 
				
			||||||
            'pools': {
 | 
					            'pools': {
 | 
				
			||||||
                'tank': {
 | 
					                'tank': {
 | 
				
			||||||
                    'devices': [
 | 
					                    'devices': [
 | 
				
			||||||
                        '/dev/disk/by-id/scsi-0HC_Volume_100356294',
 | 
					                        '/dev/disk/by-id/scsi-0HC_Volume_100662393',
 | 
				
			||||||
                    ],
 | 
					                    ],
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -219,7 +219,7 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                'mseibert.freescout': {
 | 
					                'mseibert.freescout': {
 | 
				
			||||||
                    'allowed_ips': [
 | 
					                    'allowed_ips': [
 | 
				
			||||||
                        '10.0.238.0/24',
 | 
					                        '10.0.227.0/24',
 | 
				
			||||||
                    ],
 | 
					                    ],
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue