-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnivisa.pp
More file actions
114 lines (108 loc) · 2.91 KB
/
nivisa.pp
File metadata and controls
114 lines (108 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# NI-VISA Profile
class profile::software::nivisa (
Boolean $enable = $common::software::nivisa::enable,
) {
eit_repos::yum::ni_visa.include
package::install([
'dkms',
'elfutils-libelf-devel',
'labview-rte.x86_64',
'libniqpxi1',
'libvisa',
'libvisa-data',
'libnidimu1',
'libnipxirm1',
'ni-apal-errors.noarch',
'ni-avahi-client.x86_64',
'ni-dim-dkms.x86_64',
'ni-euladepot.noarch',
'ni-kal.noarch',
'ni-mdbg.x86_64',
'ni-mdbg-dkms.x86_64',
'ni-mdbg-errors.noarch',
'ni-mxdf.x86_64',
'ni-mxdf-dkms.x86_64',
'ni-mxdf-errors.noarch',
'ni-networkdiscoverysvc.x86_64',
'ni-orb.x86_64',
'ni-orb-dkms.x86_64',
'ni-orb-errors.noarch',
'ni-orb-tools.x86_64',
'ni-pal.x86_64',
'ni-pal-dkms.x86_64',
'ni-pal-errors.noarch',
'ni-pal-support.noarch',
'ni-pxipf-errors.noarch',
'ni-pxipf-nipxirm-bin.x86_64',
'ni-pxipf-nipxirm-dkms.x86_64',
'ni-pxisa-compliance.noarch',
'ni-routing-errors.noarch',
'ni-service-locator.x86_64',
'ni-software.noarch',
'ni-sysapi.x86_64',
'ni-syscfg-runtime.x86_64',
'ni-visa.noarch',
'ni-visa-config.x86_64',
'ni-visa-ddw.x86_64',
'ni-visa-devel.noarch',
'ni-visa-doc.noarch',
'ni-visa-errors.noarch',
'ni-visa-headers.noarch',
'ni-visa-interactive-control.x86_64',
'ni-visa-labview-io-control.x86_64',
'ni-visa-labview-rc.noarch',
'ni-visa-lxi-discovery.x86_64',
'ni-visa-passport-enet.x86_64',
'ni-visa-passport-enet-serial.x86_64',
'ni-visa-passport-gpib.x86_64',
'ni-visa-passport-pxi.x86_64',
'ni-visa-passport-pxi-dkms.x86_64',
'ni-visa-passport-remote.x86_64',
'ni-visa-passport-serial.x86_64',
'ni-visa-passport-usb.x86_64',
'ni-visa-runtime.noarch',
'ni-visa-server.x86_64',
'ni-visa-sysapi.x86_64',
'ni-wsrepl.x86_64',
'nicurli.x86_64',
'nisslcerts.noarch',
'nissli.x86_64',
'niswactions.x86_64',
'nitargetcfgi.x86_64',
], {
require => Yumrepo['ni-software'],
notify => Exec['DKMS autoinstall for NI-VISA kernel modules'],
})
exec { 'DKMS autoinstall for NI-VISA kernel modules':
command => '/sbin/dkms autoinstall',
refreshonly => true,
}
[
'nipxirmk',
'nimxdfk',
'nimdbgk',
'nidimk',
'niorbk',
'NiViPciK',
'nipalk',
'nikal'
].each |$mod| {
kmod::load { $mod: }
}
# It seems like there is a possible bug in the installer for NI VISA/init
# scripts, which causes these services to not be started at boot when running
# on a systemd system. See e.g.
# https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/libnipalu-so-failed-to-initialize/td-p/3316549
# for an example of the same issue.
if $facts['init_system'] == 'systemd' {
service { [
'nisvcloc',
'nipal',
'nilxid',
'ni-pxipf-nipxirm-bind',
]:
ensure => 'running',
enable => true,
}
}
}