@dotpi/tools 2.7.1 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/tools",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Set of scripts for managing dotpi fleets of Raspberry Pi",
5
5
  "author": "Jean-Philippe Lambert",
6
6
  "contributors": [
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "files": [
30
30
  "*.js",
31
- "./src/**/*.js",
31
+ "./src/**/*",
32
32
  "./dotpi_root/**/*"
33
33
  ],
34
34
  "scripts": {
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "lerna": "^8.1.9"
48
48
  },
49
- "gitHead": "d6e2f1327424d131e819004f3ca84f811257a93b"
49
+ "gitHead": "da79e44d13e5b68a08806e1a99580bf832f50fcc"
50
50
  }
@@ -0,0 +1,16 @@
1
+ # dotpi project - ${d.projectName}
2
+
3
+ This directory contains the necessary configuration files to install a Raspberry Pi
4
+ that belongs to a given dotpi project.
5
+
6
+ ## Warning
7
+
8
+ This directory contains sensitive informations that SHOULD NOT be shared on a
9
+ public repository.
10
+
11
+ In particular, the following files are ignored by default:
12
+ - ${d.PATH_DOTPI_SECRETS_BASH}
13
+ - ${d.PATH_SSH_DIRECTORY}
14
+ - ${d.PATH_NETWORK_DIRECTORY}
15
+
16
+ You should thus share these files with people you trust through secure means.
@@ -0,0 +1,25 @@
1
+ [connection]
2
+ id=${d.wifiId}
3
+ type=wifi
4
+ # do not use external AP by default
5
+ autoconnect=true
6
+ interface-name=wlan0
7
+
8
+ [wifi]
9
+ mode=ap
10
+ ssid=${d.wifiSsid}
11
+ # disable power management
12
+ powersave=2
13
+
14
+ [wifi-security]
15
+ key-mgmt=wpa-psk
16
+ psk=${d.wifiPsk}
17
+
18
+ [ipv4]
19
+ method=shared
20
+
21
+ [ipv6]
22
+ addr-gen-mode=default
23
+ method=link-local
24
+
25
+ [proxy]
@@ -0,0 +1,29 @@
1
+ #!/bin/bash
2
+
3
+ # @dotpi/tools version
4
+ dotpi_tools_version='${d.version}'
5
+
6
+ # Project name
7
+ dotpi_project_name='${d.projectName}'
8
+
9
+ # Define soundcard
10
+ dotpi_audio_device='${d.soundCard}'
11
+
12
+ # Node.js version
13
+ dotpi_node_version='${d.nodeVersion}'
14
+
15
+ # User-defined dotpi modules to install
16
+ dotpi_module_install+=(
17
+ ${!d.installDotpiManager ? '# ' : ''}'@dotpi/manager-module'
18
+ ${!d.installDotpiLed ? '# ' : ''}'@dotpi/led-module'
19
+ )
20
+
21
+ # Misc
22
+ dotpi_timezone='${d.timeZone}'
23
+ dotpi_wifi_country_code='${d.wifiCountryCode}'
24
+ dotpi_keymap='${d.keyMap}'
25
+
26
+ # If you want to have some packages to be automatically installed
27
+ # or removed by default, you can list them in the arrays below
28
+ dotpi_apt_install+=()
29
+ dotpi_apt_uninstall+=()
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # Password of the 'pi' user
4
+ dotpi_password='${d.password}'
@@ -0,0 +1,7 @@
1
+ ${d.PATH_DOTPI_SECRETS_BASH}
2
+ ${d.PATH_SSH_DIRECTORY}
3
+ ${d.PATH_NETWORK_DIRECTORY}
4
+ ${d.PATH_DOTPI_TMP_DIRECTORY}
5
+
6
+ node_modules
7
+ dotpi_modules
@@ -0,0 +1,29 @@
1
+ [connection]
2
+ id=${d.wifiId}
3
+ type=wifi
4
+ interface-name=wlan0
5
+ autoconnect-priority=${d.wifiPriority}
6
+ # always retry to connect
7
+ autoconnect-retries=0
8
+ # always retry to authenticate
9
+ auth-retries=0
10
+
11
+ [wifi]
12
+ mode=infrastructure
13
+ ssid=${d.wifiSsid}
14
+ # disable power management
15
+ powersave=2
16
+ # band=a
17
+
18
+ [wifi-security]
19
+ key-mgmt=wpa-psk
20
+ psk=${d.wifiPsk}
21
+
22
+ [ipv4]
23
+ method=auto
24
+
25
+ [ipv6]
26
+ addr-gen-mode=default
27
+ method=link-local
28
+
29
+ [proxy]
@@ -0,0 +1,6 @@
1
+ # Generated by dotpi wizard
2
+ Host ${d.hostnamePrefix}-${d.projectName}-*.local
3
+ StrictHostKeyChecking no
4
+ UserKnownHostsFile=/dev/null
5
+ IdentityFile ~/.ssh/${d.keyBasename}
6
+ User pi