Skip to content

Commit

Permalink
Updates to fix commando on bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffe committed Feb 24, 2025
1 parent 694e742 commit c214df7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/output/xml_marker_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def output
system.module_selections.each { |search_module|
if search_module.unique_id == selected_module.write_to_module_with_id
# special case check for flag that's fed into a parameter that isn't defined within the receiving module
if search_module.attributes["read_fact"].include? selected_module.write_output_variable
if search_module.attributes["read_fact"]&.include? selected_module.write_output_variable
xml.flag(output_value)
else
Print.warn "Ignoring flag generated but fed into a fact that the module doesn't read: #{selected_module.write_to_module_with_id}.#{selected_module.write_output_variable} #{output_value}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
include '::mysql::server'
include '::mysql::client'
class { '::mysql::server':
override_options => {
'mysqld' => {
'ssl' => undef,
'ssl-ca' => undef,
'ssl-cert' => undef,
'ssl-key' => undef,
'ssl-disable' => true
}
}
}

include '::mysql::client'
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
</conflict>

<!--Cannot co-exist with other MySQL installations-->
<conflict>
<!-- <conflict>
<software_name>mysql</software_name>
</conflict>
</conflict> -->

<requires>
<module_path>.*/puppet_module/cron.*</module_path>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$db_password = $secgen_parameters['db_password'][0]

# essential packages for commando to function
package { ['php', 'php-mysqli', 'php-gd', 'libapache2-mod-php','mysql-server']:
package { ['php', 'php-gd', 'libapache2-mod-php']:
ensure => installed,
}

Expand All @@ -19,9 +19,9 @@
docroot => '/var/www/commando',
} ->

# enabling of the php7.0 module so functions on app work
exec { 'a2enmod php7.0':
command => "/usr/sbin/a2enmod php7.0",
# enabling of the php5.6 module so functions on app work
exec { 'a2enmod php5.6':
command => "/usr/sbin/a2enmod php5.6",
require => Class['::apache']
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ WARNING: This module needs some further testing, and may not work without input
<generator module_path=".*users_table_name" />
</default_input>

<conflict>
<module_path>.*commando</module_path>
</conflict>
<requires>
<module_path>.*apache.*compatible.*</module_path>
</requires>

<requires>
<module_path>.*/apache.*</module_path>
<module_path>.*php.*compatible.*</module_path>
</requires>
<requires>
<module_path>.*mysql.*compatible.*</module_path>
Expand Down
2 changes: 1 addition & 1 deletion scenarios/ctf/rand_webapp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<system>
<system_name>web_server</system_name>
<base distro="Debian 10" type="desktop" name="KDE"/>
<base distro="Debian 12" type="desktop" name="KDE"/>

<input into_datastore="IP_addresses">
<value>172.10.0.2</value>
Expand Down

0 comments on commit c214df7

Please sign in to comment.