Good day,
I am attempting to create a profile manifest for installation of one of our windows applications.
The application upon install creates multiple services and equivalent exe.
The current structure we use is as shown below
class profile::application {
## Install application package
package { 'application':
ensure => installed,
source => //server/share/application.msi,
} ->
file {'C:/Program Files (x86)/application/app1.exe':
ensure => present,
} ~>
service {'app1':
ensure => 'running',
enable => true,
}
}
This is our normal, however since this application creates multiple exe and services I need to ensure all are present and running. But want to ensure all files are present before moving to the service.
class profile::application {
## Install application package
package { 'application':
ensure => installed,
source => //server/share/application.msi,
} ->
file {'C:/Program Files (x86)/application/app1.exe':
ensure => present,
}
file {'C:/Program Files (x86)/application/app2.exe':
ensure => present,
} ~>
service {'app1':
ensure => 'running',
enable => true,
}
service {'app2':
ensure => 'running',
enable => true,
}
}
If I were to do it the way above will it ensure all files are present then move to service validation or ensure app2.exe is present then move to services?
Any help or guidance is appreciated. Thank you