packer-builds

Packer Builds for LXC and Libvirt
git clone https://git.in0rdr.ch/packer-builds.git
Log | Files | Refs | Pull requests |Archive | README

nextcloud-lxc.json (2251B)


      1 {
      2   "variables": {
      3     "manifest": "manifest.json",
      4     "nextcloud_database": "mysql",
      5     "nextcloud_database_name": "nextcloud",
      6     "nextcloud_database_host": "mariadb.lan",
      7     "nextcloud_database_port": "3306",
      8     "nextcloud_database_user": "nextcloud",
      9     "nextcloud_database_pass": "nextcloud",
     10     "nextcloud_admin_user": "admin",
     11     "nextcloud_admin_password": "admin",
     12     "nextcloud_additional_users": "\"user1\" \"user2\" \"user3\"",
     13     "nextcloud_additional_passwords": "\"p4zzw0rd1\" \"p4zzw0rd2\" \"p4zzw0rd3\"",
     14     "nextcloud_datadir": "/var/www/nextcloud/data",
     15     "nextcloud_urls": "\"nextcloud.com\" \"nextcloud.lan\"",
     16     "nextcloud_cli_url": "nextcloud.com",
     17     "nextcloud_rewrite_base": "/",
     18     "certbot_mail": "root@dev.dev"
     19   },
     20   "builders": [
     21     {
     22       "type": "lxc",
     23       "name": "nextcloud",
     24       "config_file": "config/nextcloud-config",
     25       "template_name": "download",
     26       "template_parameters": ["--dist", "Debian", "--release", "Bullseye", "--arch", "armv7l"]
     27     }
     28   ],
     29   "provisioners": [
     30     {
     31       "type": "shell",
     32       "script": "scripts/timezone.sh"
     33     },
     34     {
     35       "type": "shell",
     36       "script": "scripts/nextcloud.sh",
     37       "environment_vars": [
     38         "NEXTCLOUD_DATABASE={{ user `nextcloud_database` }}",
     39         "NEXTCLOUD_DATABASE_NAME={{ user `nextcloud_database_name` }}",
     40         "NEXTCLOUD_DATABASE_HOST={{ user `nextcloud_database_host` }}",
     41         "NEXTCLOUD_DATABASE_PORT={{ user `nextcloud_database_port` }}",
     42         "NEXTCLOUD_DATABASE_USER={{ user `nextcloud_database_user` }}",
     43         "NEXTCLOUD_DATABASE_PASS={{ user `nextcloud_database_pass` }}",
     44         "NEXTCLOUD_ADMIN_USER={{ user `nextcloud_admin_user` }}",
     45         "NEXTCLOUD_ADMIN_PASSWORD={{ user `nextcloud_admin_password` }}",
     46         "NEXTCLOUD_ADDITIONAL_USERS={{ user `nextcloud_additional_users` }}",
     47         "NEXTCLOUD_ADDITIONAL_PASSWORDS={{ user `nextcloud_additional_passwords` }}",
     48         "NEXTCLOUD_DATADIR={{ user `nextcloud_datadir` }}",
     49         "NEXTCLOUD_URLS={{ user `nextcloud_urls` }}",
     50         "NEXTCLOUD_CLI_URL={{ user `nextcloud_cli_url` }}",
     51         "NEXTCLOUD_REWRITE_BASE={{ user `nextcloud_rewrite_base` }}",
     52         "CERTBOT_MAIL={{ user `certbot_mail` }}"
     53       ]
     54     }
     55   ]
     56 }