{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/405","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/405/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/405/events","html_url":"https://github.com/eclipse/che/issues/405","id":134573275,"number":405,"title":"CHE-533 Don't repeat preparing of codenvy properties at the each step of installation","user":{"login":"skabashnyuk","id":1614429,"avatar_url":"https://avatars.githubusercontent.com/u/1614429?v=3","gravatar_id":"","url":"https://api.github.com/users/skabashnyuk","html_url":"https://github.com/skabashnyuk","followers_url":"https://api.github.com/users/skabashnyuk/followers","following_url":"https://api.github.com/users/skabashnyuk/following{/other_user}","gists_url":"https://api.github.com/users/skabashnyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/skabashnyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skabashnyuk/subscriptions","organizations_url":"https://api.github.com/users/skabashnyuk/orgs","repos_url":"https://api.github.com/users/skabashnyuk/repos","events_url":"https://api.github.com/users/skabashnyuk/events{/privacy}","received_events_url":"https://api.github.com/users/skabashnyuk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T12:51:43Z","updated_at":"2016-03-30T12:02:30Z","closed_at":"2016-03-30T12:02:30Z","body":"This is an autogenerated issue.\r\nOriginal: https://jira.codenvycorp.com/browse/CHE-533\r\nReporter:  Dmytro Nochevnov\r\nDescription: When we installing Codenvy by bootstrap script it calls *im-install* command for each installation step separately and so execute *ConfigManager::prepareInstallProperties()* method frequently. As the result, we have a lot of redundant commands in execution stack:\r\n```\r\ntitle=/home/vagrant/codenvy-im/codenvy-cli/data/tmp/im-non-interactive.log\r\n[root@master vagrant]# tailf /home/vagrant/codenvy-im/codenvy-cli/data/tmp/im-non-interactive.log\r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='ssh-keygen -q -P '' -t rsa -f 1219783553406794636736970471514944342', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 1219783553406794636736970471514944342', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 1219783553406794636736970471514944342.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='rm 1219783553406794636736970471514944342; rm 1219783553406794636736970471514944342.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if [ ! -f /etc/redhat-release ]; then     exit 1; else     cat /etc/redhat-release | sed 's/.*\\s\\([0-9\\.]*\\)\\s.*/\\1/'; fi', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if ! sudo grep -Eq \"127.0.0.1.*puppet\" /etc/hosts; then\r\n echo '127.0.0.1 puppet' | sudo tee --append /etc/hosts > /dev/null\r\nfi', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if ! sudo grep -Eq \" codenvy$\" /etc/hosts; then\r\n  echo \"127.0.0.1 codenvy\" | sudo tee --append /etc/hosts > /dev/null\r\nfi', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='yum clean all', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:20 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if [ \"`yum list installed | grep puppetlabs-release`\" == \"\" ]; then sudo yum -y -q install https://yum.puppetlabs.com/el/7/products/x86_64/puppetlabs-release-7-11.noarch.rpm; fi', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:21 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='sudo yum -y -q install puppet-server-3.5.1-1.el7.noarch', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:23 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='sudo systemctl enable puppetmaster', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:24 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='sudo yum -y -q install puppet-3.5.1-1.el7.noarch', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:24 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='sudo systemctl enable puppet', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='ssh-keygen -q -P '' -t rsa -f 938122336856618466752654008679123832', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 938122336856618466752654008679123832', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 938122336856618466752654008679123832.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='rm 938122336856618466752654008679123832; rm 938122336856618466752654008679123832.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if [ ! -f /etc/redhat-release ]; then     exit 1; else     cat /etc/redhat-release | sed 's/.*\\s\\([0-9\\.]*\\)\\s.*/\\1/'; fi', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:27 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='sudo unzip -o /home/vagrant/codenvy-im-data/updates/codenvy/4.0.0-RC3/codenvy-4.0.0-RC3.zip -d /etc/puppet', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:31 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 659601881754189941429453912790114471', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:31 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='cat 659601881754189941429453912790114471.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:31 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='rm 659601881754189941429453912790114471; rm 659601881754189941429453912790114471.pub', 'agent'='LocalAgent'}  \r\nFeb 18, 2016 9:39:31 AM com.codenvy.im.commands.SimpleCommand execute INFO: {'command'='if [ ! -f /etc/redhat-release ]; then     exit 1; else     cat /etc/redhat-release | sed 's/.*\\s\\([0-9\\.]*\\)\\s.*/\\1/'; fi', 'agent'='LocalAgent'}  \r\n...\r\n```\r\n\r\n_*Possible solution*_:  move call of *ConfigManager::prepareInstallProperties()* in the separate step and save prepared configuration in the _codenvy.properites_ file."}}