Zack Saadioui
8/27/2024
1
2
sudo apt-get update
sudo apt-get install puppet
1
sudo yum install puppet
1
manifests
1
modules
1
/etc/puppetlabs/code/environments/
1
development
1
2
mkdir -p /etc/puppetlabs/code/environments/development/manifests
mkdir -p /etc/puppetlabs/code/environments/development/modules
1
environment.conf
1
development
1
touch /etc/puppetlabs/code/environments/development/environment.conf
1
environment.conf
1
2
# /etc/puppetlabs/code/environments/development/environment.conf
modulepath = site:dist:modules:$basemodulepath
1
Puppet
1
sudo systemctl start puppet
1
ollama_setup.pp
1
manifests
1
vim /etc/puppetlabs/code/environments/development/manifests/ollama_setup.pp
1
2
3
4
5
6
7
8
9
10
11
12
puppet
class ollama_setup {
package { 'ollama':
ensure => installed,
}
exec { 'initialize_ollama':
command => 'ollama run llama3',
path => '/usr/bin',
require => Package['ollama'],
}
}
include ollama_setup
1
llama3
1
puppet apply /etc/puppetlabs/code/environments/development/manifests/ollama_setup.pp
1
site.pp
1
ollama run llama3
Copyright © Arsturn 2024