You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: secure_instance_plugin.rb
    path of file: ./repos/barcelona/lib/barcelona/plugins
    
    the code of the file until where you have to start completion: # SecureInstance plugin
# This plugin configure container instance and bastion instance more secure
# Usage: bcn district put-plugin discrict1 secure_instance

module Barcelona
  module Plugins
   
    class SecureInstancePlugin < Base
      def on_container_instance_user_data(_instance, user_data)
        user_data.extend SecureUserData
        user_da
    
        def install_tools_for_pcidss
          # Exclude different file systems such as /proc and /dev (-xdev)
          # Files that have changed within a day (-mtime -1)
          scan_command = "listfile=`mktemp` && find / -xdev -mtime -1 -type f -fprint $listfile && clamscan -i -f $listfile | logger -t clamscan"

          # fail2ban configurations
          self.add_file("/etc/fail2ban/jail.local", "root:root", "644", <<~EOS)
            [DEFAULT]
            bantime = 1800
            [sshd]
            enabled = true
            action = iptables[name=SSH, port=ssh, protocol=tcp]
          EOS

          self.run_commands += [
            "amazon-linux-extras install -y epel",
            "yum install -y clamav clamav-update tmpwatch fail2ban",

            # Enable freshclam configuration
            "sed -i 's/^Example$//g' /etc/freshclam.conf",
            "sed -i 's/^FRESHCLAM_DELAY=disabled-warn.*$//g' /etc/sysconfig/freshclam",

            # Daily full file system scan
            "echo '0 0 * * * root #{scan_command}' > /etc/cron.d/clamscan",
            "service crond restart",

            # fail2ban 
            "systemctl restart fail2ban",

            # SSH session timeout
            "echo 'TMOUT=900 && readonly TMOUT && export TMOUT' > /etc/profile.d/tmout.sh",
          ]
        end