Skip to content

Commit a055548

Browse files
committed
fix: install openvox for turrisos with compatible version
Signed-off-by: Sidharth Jawale <sidharth@obmondo.com>
1 parent 9d8acc2 commit a055548

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

constant/constants.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const (
1515
ExternalFacterFile = "/etc/puppetlabs/facter/facts.d/new_installation.yaml"
1616
PuppetPrivKeyPath = "/etc/puppetlabs/puppet/ssl/private_keys"
1717

18+
// Openvox
19+
OpenvoxAgentVersionTurris = "7.37.2"
20+
1821
// Lock and Disabled
1922
AgentDisabledLockFile = "/opt/puppetlabs/puppet/cache/state/agent_disabled.lock"
2023
AgentRunningLockFile = "/opt/puppetlabs/puppet/cache/state/agent_catalog_run.lock"

helper/provisioner/provisioner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ func (s *Provisioner) provisionForSuse() error {
167167
// provisionForTurris installs puppet via gem on TurrisOS
168168
func (s *Provisioner) provisionForTurris() {
169169
s.webtee.RemoteLogObmondo([]string{"opkg update"}, s.certName)
170-
s.webtee.RemoteLogObmondo([]string{"opkg install ruby ruby-full ruby-gems"}, s.certName)
170+
s.webtee.RemoteLogObmondo([]string{"opkg install ruby ruby-stdlib ruby-dev ruby-gems"}, s.certName)
171171

172-
installCmd := []string{fmt.Sprintf("gem install puppet -v %s --no-document", constant.PuppetVersion)}
172+
installCmd := []string{fmt.Sprintf("gem install -v %s --no-document openvox", constant.OpenvoxAgentVersionTurris)}
173173
s.webtee.RemoteLogObmondo(installCmd, s.certName)
174174
}

0 commit comments

Comments
 (0)